Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / settings_api_bubble_controller.h
blob42095330dc4e3330ddc589bb8ad1bf0899a29302
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(Profile* profile, 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 // A weak pointer to the profile we are associated with. Not owned by us.
31 Profile* profile_;
33 // The type of settings override this bubble will report on.
34 SettingsApiOverrideType type_;
36 DISALLOW_COPY_AND_ASSIGN(SettingsApiBubbleController);
39 } // namespace extensions
41 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_BUBBLE_CONTROLLER_H_