Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_PROVIDER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/stateful_external_extension_provider.h" | 9 #include "chrome/browser/extensions/stateful_external_extension_provider.h" |
| 10 | 10 |
| 11 class ListValue; | 11 class ListValue; |
| 12 class MockExternalPolicyExtensionProviderVisitor; | 12 class MockExternalPolicyExtensionProviderVisitor; |
| 13 class PrefService; | 13 class PrefService; |
| 14 | 14 |
| 15 // A specialization of the ExternalExtensionProvider that uses | 15 // A specialization of the ExternalExtensionProvider that uses |
| 16 // prefs::kExtensionInstallForceList to look up which external extensions are | 16 // prefs::kExtensionInstallForceList to look up which external extensions are |
|
jochen (gone - plz use gerrit)
2010/12/14 13:40:43
actually it uses whatever is passed in the constru
gfeher
2010/12/14 14:23:15
Not exactly. Added comment.
It would be nice to h
| |
| 17 // registered. | 17 // registered. |
| 18 class ExternalPolicyExtensionProvider | 18 class ExternalPolicyExtensionProvider |
| 19 : public StatefulExternalExtensionProvider { | 19 : public StatefulExternalExtensionProvider { |
| 20 public: | 20 public: |
| 21 explicit ExternalPolicyExtensionProvider(); | 21 explicit ExternalPolicyExtensionProvider(const ListValue* forcelist); |
| 22 virtual ~ExternalPolicyExtensionProvider(); | 22 virtual ~ExternalPolicyExtensionProvider(); |
| 23 | 23 |
| 24 // Set the internal list of extensions based on |forcelist|. | 24 // Set the internal list of extensions based on |forcelist|. |
| 25 // Does not take ownership of |forcelist|. | 25 // Does not take ownership of |forcelist|. |
| 26 void SetPreferences(const ListValue* forcelist); | 26 void SetPreferences(const ListValue* forcelist); |
|
jochen (gone - plz use gerrit)
2010/12/14 13:49:47
are you still using this or can this be private?
gfeher
2010/12/14 14:23:15
No, this is used to refresh the internal list from
| |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 friend class MockExternalPolicyExtensionProviderVisitor; | 29 friend class MockExternalPolicyExtensionProviderVisitor; |
| 30 | 30 |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_PROVIDER_H_ | 33 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_PROVIDER_H_ |
| OLD | NEW |