OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MANAGEMENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/containers/scoped_ptr_hash_map.h" | 12 #include "base/containers/scoped_ptr_hash_map.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 19 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
20 #include "components/keyed_service/core/keyed_service.h" | 20 #include "components/keyed_service/core/keyed_service.h" |
21 #include "components/prefs/pref_change_registrar.h" | 21 #include "components/prefs/pref_change_registrar.h" |
22 #include "extensions/browser/management_policy.h" | 22 #include "extensions/browser/management_policy.h" |
23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension_id.h" |
24 #include "extensions/common/manifest.h" | 24 #include "extensions/common/manifest.h" |
25 | 25 |
26 class GURL; | 26 class GURL; |
27 class PrefService; | 27 class PrefService; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class BrowserContext; | 30 class BrowserContext; |
31 } // namespace content | 31 } // namespace content |
32 | 32 |
33 namespace extensions { | 33 namespace extensions { |
34 | 34 |
35 namespace internal { | 35 namespace internal { |
36 | 36 |
37 struct IndividualSettings; | 37 struct IndividualSettings; |
38 struct GlobalSettings; | 38 struct GlobalSettings; |
39 | 39 |
40 } // namespace internal | 40 } // namespace internal |
41 | 41 |
42 class APIPermissionSet; | 42 class APIPermissionSet; |
| 43 class Extension; |
43 class PermissionSet; | 44 class PermissionSet; |
44 | 45 |
45 // Tracks the management policies that affect extensions and provides interfaces | 46 // Tracks the management policies that affect extensions and provides interfaces |
46 // for observing and obtaining the global settings for all extensions, as well | 47 // for observing and obtaining the global settings for all extensions, as well |
47 // as per-extension settings. | 48 // as per-extension settings. |
48 class ExtensionManagement : public KeyedService { | 49 class ExtensionManagement : public KeyedService { |
49 public: | 50 public: |
50 // Observer class for extension management settings changes. | 51 // Observer class for extension management settings changes. |
51 class Observer { | 52 class Observer { |
52 public: | 53 public: |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 content::BrowserContext* context) const override; | 211 content::BrowserContext* context) const override; |
211 void RegisterProfilePrefs( | 212 void RegisterProfilePrefs( |
212 user_prefs::PrefRegistrySyncable* registry) override; | 213 user_prefs::PrefRegistrySyncable* registry) override; |
213 | 214 |
214 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); | 215 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); |
215 }; | 216 }; |
216 | 217 |
217 } // namespace extensions | 218 } // namespace extensions |
218 | 219 |
219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 220 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
OLD | NEW |