[sessions]: Componentize TabRestore code
[chromium-blink-merge.git] / chrome / browser / extensions / suspicious_extension_bubble_controller.h
blobd44d2eb8d491a90972dbce4ac7d7b914d8bacd66
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 Browser;
12 namespace extensions {
14 class SuspiciousExtensionBubbleController
15 : public extensions::ExtensionMessageBubbleController {
16 public:
17 // Clears the list of profiles the bubble has been shown for. Should only be
18 // used during testing.
19 static void ClearProfileListForTesting();
21 explicit SuspiciousExtensionBubbleController(Browser* browser);
22 ~SuspiciousExtensionBubbleController() override;
24 // Whether the controller knows of extensions to list in the bubble. Returns
25 // true if so.
26 bool ShouldShow();
28 // ExtensionMessageBubbleController methods.
29 void Show(ExtensionMessageBubble* bubble) override;
31 private:
32 DISALLOW_COPY_AND_ASSIGN(SuspiciousExtensionBubbleController);
35 } // namespace extensions
37 #endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_CONTROLLER_H_