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_COMPONENT_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/prefs/pref_change_registrar.h" | 15 #include "chrome/browser/prefs/pref_change_registrar.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 | 17 |
18 class Extension; | |
19 class ExtensionServiceInterface; | 18 class ExtensionServiceInterface; |
20 class PrefService; | 19 class PrefService; |
21 | 20 |
22 namespace extensions { | 21 namespace extensions { |
23 | 22 |
| 23 class Extension; |
| 24 |
24 // For registering, loading, and unloading component extensions. | 25 // For registering, loading, and unloading component extensions. |
25 class ComponentLoader : public content::NotificationObserver { | 26 class ComponentLoader : public content::NotificationObserver { |
26 public: | 27 public: |
27 ComponentLoader(ExtensionServiceInterface* extension_service, | 28 ComponentLoader(ExtensionServiceInterface* extension_service, |
28 PrefService* prefs, | 29 PrefService* prefs, |
29 PrefService* local_state); | 30 PrefService* local_state); |
30 virtual ~ComponentLoader(); | 31 virtual ~ComponentLoader(); |
31 | 32 |
32 size_t registered_extensions_count() const { | 33 size_t registered_extensions_count() const { |
33 return component_extensions_.size(); | 34 return component_extensions_.size(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 RegisteredComponentExtensions component_extensions_; | 126 RegisteredComponentExtensions component_extensions_; |
126 | 127 |
127 PrefChangeRegistrar pref_change_registrar_; | 128 PrefChangeRegistrar pref_change_registrar_; |
128 | 129 |
129 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); | 130 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); |
130 }; | 131 }; |
131 | 132 |
132 } // namespace extensions | 133 } // namespace extensions |
133 | 134 |
134 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 135 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
OLD | NEW |