OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTERNAL_POLICY_EXTENSION_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/external_extension_loader.h" | 9 #include "chrome/browser/extensions/external_extension_loader.h" |
10 | 10 |
11 #include "chrome/browser/prefs/pref_change_registrar.h" | 11 #include "chrome/browser/prefs/pref_change_registrar.h" |
12 #include "content/common/notification_observer.h" | 12 #include "content/common/notification_observer.h" |
13 #include "content/common/notification_registrar.h" | 13 #include "content/common/notification_registrar.h" |
14 | 14 |
15 class ListValue; | |
16 class MockExternalPolicyExtensionProviderVisitor; | 15 class MockExternalPolicyExtensionProviderVisitor; |
17 class Profile; | 16 class Profile; |
18 | 17 |
19 // A specialization of the ExternalExtensionProvider that uses | 18 // A specialization of the ExternalExtensionProvider that uses |
20 // prefs::kExtensionInstallForceList to look up which external extensions are | 19 // prefs::kExtensionInstallForceList to look up which external extensions are |
21 // registered. | 20 // registered. |
22 class ExternalPolicyExtensionLoader | 21 class ExternalPolicyExtensionLoader |
23 : public ExternalExtensionLoader, | 22 : public ExternalExtensionLoader, |
24 public NotificationObserver { | 23 public NotificationObserver { |
25 public: | 24 public: |
(...skipping 14 matching lines...) Expand all Loading... |
40 | 39 |
41 PrefChangeRegistrar pref_change_registrar_; | 40 PrefChangeRegistrar pref_change_registrar_; |
42 NotificationRegistrar notification_registrar_; | 41 NotificationRegistrar notification_registrar_; |
43 | 42 |
44 Profile* profile_; | 43 Profile* profile_; |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(ExternalPolicyExtensionLoader); | 45 DISALLOW_COPY_AND_ASSIGN(ExternalPolicyExtensionLoader); |
47 }; | 46 }; |
48 | 47 |
49 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ | 48 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ |
OLD | NEW |