Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / extensions / settings_api_bubble_controller.h
blob6daf755b4f3a1915507a5f02169c0406322761a1
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_API_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_API_BUBBLE_CONTROLLER_H_
8 #include <string>
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h"
11 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
13 namespace extensions {
15 class SettingsApiBubble;
17 class SettingsApiBubbleController : public ExtensionMessageBubbleController {
18 public:
19 SettingsApiBubbleController(Browser* browser, SettingsApiOverrideType type);
20 ~SettingsApiBubbleController() override;
22 // Returns true if we should show the bubble for the extension actively
23 // overriding the setting of |type_|.
24 bool ShouldShow();
26 // ExtensionMessageBubbleController:
27 bool CloseOnDeactivate() override;
29 private:
30 // The type of settings override this bubble will report on.
31 SettingsApiOverrideType type_;
33 DISALLOW_COPY_AND_ASSIGN(SettingsApiBubbleController);
36 } // namespace extensions
38 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_BUBBLE_CONTROLLER_H_