| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/extensions/extension_message_bubble_controller.h" | 9 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const base::string16& overflow_count) const override; | 31 const base::string16& overflow_count) const override; |
| 32 GURL GetLearnMoreUrl() const override; | 32 GURL GetLearnMoreUrl() const override; |
| 33 base::string16 GetActionButtonLabel() const override; | 33 base::string16 GetActionButtonLabel() const override; |
| 34 base::string16 GetDismissButtonLabel() const override; | 34 base::string16 GetDismissButtonLabel() const override; |
| 35 bool ShouldCloseOnDeactivate() const override; | 35 bool ShouldCloseOnDeactivate() const override; |
| 36 bool ShouldShowExtensionList() const override; | 36 bool ShouldShowExtensionList() const override; |
| 37 bool ShouldHighlightExtensions() const override; | 37 bool ShouldHighlightExtensions() const override; |
| 38 bool ShouldLimitToEnabledExtensions() const override; | 38 bool ShouldLimitToEnabledExtensions() const override; |
| 39 void LogExtensionCount(size_t count) override; | 39 void LogExtensionCount(size_t count) override; |
| 40 void LogAction(ExtensionMessageBubbleController::BubbleAction) override; | 40 void LogAction(ExtensionMessageBubbleController::BubbleAction) override; |
| 41 std::set<Profile*>* GetProfileSet() override; | 41 const char* GetKey() override; |
| 42 | |
| 43 // Clears the list of profiles the bubble has been shown for. Should only be | |
| 44 // used during testing. | |
| 45 static void ClearProfileListForTesting(); | |
| 46 | 42 |
| 47 private: | 43 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(SuspiciousExtensionBubbleDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(SuspiciousExtensionBubbleDelegate); |
| 49 }; | 45 }; |
| 50 | 46 |
| 51 } // namespace extensions | 47 } // namespace extensions |
| 52 | 48 |
| 53 #endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ | 49 #endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_DELEGATE_H_ |
| OLD | NEW |