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_
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
{
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_|.
26 // ExtensionMessageBubbleController:
27 bool CloseOnDeactivate() override
;
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_