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> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
14 #include "chrome/browser/ui/browser_list_observer.h" | 14 #include "chrome/browser/ui/browser_list_observer.h" |
15 #include "extensions/browser/browser_context_keyed_api_factory.h" | 15 #include "extensions/browser/browser_context_keyed_api_factory.h" |
16 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
17 | 17 |
18 class Browser; | 18 class Browser; |
19 class BrowserList; | 19 class BrowserList; |
20 class ExtensionService; | 20 class ExtensionService; |
21 class ToolbarActionsModel; | 21 class ToolbarActionsModel; |
22 class Profile; | 22 class Profile; |
23 | 23 |
24 namespace extensions { | 24 namespace extensions { |
25 | 25 |
26 class ExtensionPrefs; | |
27 class ExtensionRegistry; | 26 class ExtensionRegistry; |
28 | 27 |
29 class ExtensionMessageBubbleController : public chrome::BrowserListObserver { | 28 class ExtensionMessageBubbleController : public chrome::BrowserListObserver { |
30 public: | 29 public: |
31 // UMA histogram constants. | 30 // UMA histogram constants. |
32 enum BubbleAction { | 31 enum BubbleAction { |
33 ACTION_LEARN_MORE = 0, | 32 ACTION_LEARN_MORE = 0, |
34 ACTION_EXECUTE, | 33 ACTION_EXECUTE, |
35 ACTION_DISMISS_USER_ACTION, | 34 ACTION_DISMISS_USER_ACTION, |
36 ACTION_DISMISS_DEACTIVATION, | 35 ACTION_DISMISS_DEACTIVATION, |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 bool is_active_bubble_; | 214 bool is_active_bubble_; |
216 | 215 |
217 ScopedObserver<BrowserList, BrowserListObserver> browser_list_observer_; | 216 ScopedObserver<BrowserList, BrowserListObserver> browser_list_observer_; |
218 | 217 |
219 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleController); | 218 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleController); |
220 }; | 219 }; |
221 | 220 |
222 } // namespace extensions | 221 } // namespace extensions |
223 | 222 |
224 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ | 223 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_CONTROLLER_H_ |
OLD | NEW |