diff options
author | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 18:14:21 +0000 |
---|---|---|
committer | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 18:14:21 +0000 |
commit | a4179c2ab89873eb1aaf999bd67185568ed0a7eb (patch) | |
tree | e4a09652fae0190e51fa938a7dfe9a46bca751cd /chrome/browser/policy/browser_policy_connector.h | |
parent | c033c5087d504ce089ec51763292b11bc1c6850d (diff) | |
download | chromium_src-a4179c2ab89873eb1aaf999bd67185568ed0a7eb.zip chromium_src-a4179c2ab89873eb1aaf999bd67185568ed0a7eb.tar.gz chromium_src-a4179c2ab89873eb1aaf999bd67185568ed0a7eb.tar.bz2 |
Introduced the PolicyService.
The PolicyService is owned by the BrowserPolicyConnector, and isn't yet used
anywhere. The next step is to make the ConfigurationPolicyPrefStores get their
policies from the PolicyService instead of the providers directly. The providers
then can also be modified to provide both mandatory and recommended policies,
and 3rd party policies.
BUG=108999
TEST=All works as before; unit_tests green
Review URL: http://codereview.chromium.org/9325066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121249 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/browser_policy_connector.h')
-rw-r--r-- | chrome/browser/policy/browser_policy_connector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h index adb0c8c..ef98482 100644 --- a/chrome/browser/policy/browser_policy_connector.h +++ b/chrome/browser/policy/browser_policy_connector.h @@ -26,6 +26,8 @@ class CloudPolicyProvider; class CloudPolicySubsystem; class ConfigurationPolicyProvider; class NetworkConfigurationUpdater; +class PolicyService; +class PolicyServiceImpl; class UserPolicyTokenCache; // Manages the lifecycle of browser-global policy infrastructure, such as the @@ -49,6 +51,8 @@ class BrowserPolicyConnector : public content::NotificationObserver { ConfigurationPolicyProvider* GetRecommendedPlatformProvider() const; ConfigurationPolicyProvider* GetRecommendedCloudProvider() const; + PolicyService* GetPolicyService() const; + // Returns a weak pointer to the CloudPolicySubsystem corresponding to the // device policy managed by this policy connector, or NULL if no such // subsystem exists (i.e. when running outside ChromeOS). @@ -151,6 +155,8 @@ class BrowserPolicyConnector : public content::NotificationObserver { scoped_ptr<CloudPolicyProvider> managed_cloud_provider_; scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_; + scoped_ptr<PolicyServiceImpl> policy_service_; + #if defined(OS_CHROMEOS) scoped_ptr<CloudPolicyDataStore> device_data_store_; scoped_ptr<CloudPolicySubsystem> device_cloud_policy_subsystem_; |