Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / suspicious_extension_bubble_controller.h
blob11464989a2e7297a76ac82d4c7f0f728f6e5dd71
1 // Copyright (c) 2013 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_SUSPICIOUS_EXTENSION_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_CONTROLLER_H_
8 #include "chrome/browser/extensions/extension_message_bubble_controller.h"
10 class Profile;
12 namespace extensions {
14 class SuspiciousExtensionBubble;
16 class SuspiciousExtensionBubbleController
17 : public extensions::ExtensionMessageBubbleController {
18 public:
19 // Clears the list of profiles the bubble has been shown for. Should only be
20 // used during testing.
21 static void ClearProfileListForTesting();
23 explicit SuspiciousExtensionBubbleController(Profile* profile);
24 ~SuspiciousExtensionBubbleController() override;
26 // Whether the controller knows of extensions to list in the bubble. Returns
27 // true if so.
28 bool ShouldShow();
30 // ExtensionMessageBubbleController methods.
31 void Show(ExtensionMessageBubble* bubble) override;
33 private:
34 // A weak pointer to the profile we are associated with. Not owned by us.
35 Profile* profile_;
37 DISALLOW_COPY_AND_ASSIGN(SuspiciousExtensionBubbleController);
40 } // namespace extensions
42 #endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_CONTROLLER_H_