| 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_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual bool ShouldLimitToEnabledExtensions() const = 0; | 80 virtual bool ShouldLimitToEnabledExtensions() const = 0; |
| 81 | 81 |
| 82 // Record, through UMA, how many extensions were found. | 82 // Record, through UMA, how many extensions were found. |
| 83 virtual void LogExtensionCount(size_t count) = 0; | 83 virtual void LogExtensionCount(size_t count) = 0; |
| 84 virtual void LogAction(BubbleAction action) = 0; | 84 virtual void LogAction(BubbleAction action) = 0; |
| 85 | 85 |
| 86 // Returns a key unique to the type of bubble that can be used to retrieve | 86 // Returns a key unique to the type of bubble that can be used to retrieve |
| 87 // state specific to the type (e.g., shown for profiles). | 87 // state specific to the type (e.g., shown for profiles). |
| 88 virtual const char* GetKey() = 0; | 88 virtual const char* GetKey() = 0; |
| 89 | 89 |
| 90 // Returns true if the bubble is informing about a single extension that can |
| 91 // be policy-installed. |
| 92 // E.g. A proxy-type extension can be policy installed, but a developer-type |
| 93 // extension cannot. |
| 94 virtual bool SupportsPolicyIndicator() = 0; |
| 95 |
| 90 // Whether the "shown for profiles" set should be cleared if an action is | 96 // Whether the "shown for profiles" set should be cleared if an action is |
| 91 // taken on the bubble. This defaults to true, since once an action is | 97 // taken on the bubble. This defaults to true, since once an action is |
| 92 // taken, the extension will usually either be acknowledged or removed, and | 98 // taken, the extension will usually either be acknowledged or removed, and |
| 93 // the bubble won't show for that extension. | 99 // the bubble won't show for that extension. |
| 94 // This should be false in cases where there is no acknowledgment option | 100 // This should be false in cases where there is no acknowledgment option |
| 95 // (as in the developer-mode extension warning). | 101 // (as in the developer-mode extension warning). |
| 96 virtual bool ClearProfileSetAfterAction(); | 102 virtual bool ClearProfileSetAfterAction(); |
| 97 | 103 |
| 98 // Has the user acknowledged info about the extension the bubble reports. | 104 // Has the user acknowledged info about the extension the bubble reports. |
| 99 bool HasBubbleInfoBeenAcknowledged(const std::string& extension_id); | 105 bool HasBubbleInfoBeenAcknowledged(const std::string& extension_id); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 bool is_active_bubble_; | 215 bool is_active_bubble_; |
| 210 | 216 |
| 211 ScopedObserver<BrowserList, BrowserListObserver> browser_list_observer_; | 217 ScopedObserver<BrowserList, BrowserListObserver> browser_list_observer_; |
| 212 | 218 |
| 213 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleController); | 219 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleController); |
| 214 }; | 220 }; |
| 215 | 221 |
| 216 } // namespace extensions | 222 } // namespace extensions |
| 217 | 223 |
| 218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ | 224 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |