OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TOOLBAR_MODEL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
11 #include "chrome/common/extensions/extension.h" | |
12 #include "chrome/browser/extensions/extension_prefs.h" | 11 #include "chrome/browser/extensions/extension_prefs.h" |
13 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 12 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
14 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 15 #include "extensions/common/extension.h" |
16 | 16 |
17 class Browser; | 17 class Browser; |
18 class ExtensionService; | 18 class ExtensionService; |
19 class PrefService; | 19 class PrefService; |
20 | 20 |
21 // Model for the browser actions toolbar. | 21 // Model for the browser actions toolbar. |
22 class ExtensionToolbarModel : public content::NotificationObserver, | 22 class ExtensionToolbarModel : public content::NotificationObserver, |
23 public BrowserContextKeyedService { | 23 public BrowserContextKeyedService { |
24 public: | 24 public: |
25 ExtensionToolbarModel(Profile* profile, | 25 ExtensionToolbarModel(Profile* profile, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // For observing change of toolbar order preference by external entity (sync). | 158 // For observing change of toolbar order preference by external entity (sync). |
159 PrefChangeRegistrar pref_change_registrar_; | 159 PrefChangeRegistrar pref_change_registrar_; |
160 base::Closure pref_change_callback_; | 160 base::Closure pref_change_callback_; |
161 | 161 |
162 base::WeakPtrFactory<ExtensionToolbarModel> weak_ptr_factory_; | 162 base::WeakPtrFactory<ExtensionToolbarModel> weak_ptr_factory_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(ExtensionToolbarModel); | 164 DISALLOW_COPY_AND_ASSIGN(ExtensionToolbarModel); |
165 }; | 165 }; |
166 | 166 |
167 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_H_ | 167 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_H_ |
OLD | NEW |