| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/extensions/extension_message_bubble_controller.h" | 11 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
| 12 | 12 |
| 13 class Browser; | |
| 14 | |
| 15 namespace extensions { | 13 namespace extensions { |
| 16 | 14 |
| 17 class SuspiciousExtensionBubbleDelegate | 15 class SuspiciousExtensionBubbleDelegate |
| 18 : public ExtensionMessageBubbleController::Delegate { | 16 : public ExtensionMessageBubbleController::Delegate { |
| 19 public: | 17 public: |
| 20 explicit SuspiciousExtensionBubbleDelegate(Profile* profile); | 18 explicit SuspiciousExtensionBubbleDelegate(Profile* profile); |
| 21 ~SuspiciousExtensionBubbleDelegate() override; | 19 ~SuspiciousExtensionBubbleDelegate() override; |
| 22 | 20 |
| 23 // ExtensionMessageBubbleController::Delegate methods. | 21 // ExtensionMessageBubbleController::Delegate methods. |
| 24 bool ShouldIncludeExtension(const extensions::Extension* extension) override; | 22 bool ShouldIncludeExtension(const extensions::Extension* extension) override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 43 const char* GetKey() override; | 41 const char* GetKey() override; |
| 44 bool SupportsPolicyIndicator() override; | 42 bool SupportsPolicyIndicator() override; |
| 45 | 43 |
| 46 private: | 44 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(SuspiciousExtensionBubbleDelegate); | 45 DISALLOW_COPY_AND_ASSIGN(SuspiciousExtensionBubbleDelegate); |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace extensions | 48 } // namespace extensions |
| 51 | 49 |
| 52 #endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ | 50 #endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ |
| OLD | NEW |