Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/policy/browser_policy_connector.h

Issue 10443108: Implement the ConfigDirPolicyProvider based on the AsyncPolicyLoader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_POLICY_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const content::NotificationSource& source, 146 const content::NotificationSource& source,
147 const content::NotificationDetails& details) OVERRIDE; 147 const content::NotificationDetails& details) OVERRIDE;
148 148
149 // Initializes the device cloud policy infrasturcture. 149 // Initializes the device cloud policy infrasturcture.
150 void InitializeDevicePolicy(); 150 void InitializeDevicePolicy();
151 151
152 // Complete initialization once the message loops are running and the 152 // Complete initialization once the message loops are running and the
153 // local_state is initialized. 153 // local_state is initialized.
154 void CompleteInitialization(); 154 void CompleteInitialization();
155 155
156 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); 156 static ConfigurationPolicyProvider* CreatePlatformProvider();
157 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider();
158 157
159 // Used to convert policies to preferences. The providers declared below 158 // Used to convert policies to preferences. The providers declared below
160 // trigger policy updates during destruction via OnProviderGoingAway(), which 159 // trigger policy updates during destruction via OnProviderGoingAway(), which
161 // will result in |handler_list_| being consulted for policy translation. 160 // will result in |handler_list_| being consulted for policy translation.
162 // Therefore, it's important to destroy |handler_list_| after the providers. 161 // Therefore, it's important to destroy |handler_list_| after the providers.
163 ConfigurationPolicyHandlerList handler_list_; 162 ConfigurationPolicyHandlerList handler_list_;
164 163
165 scoped_ptr<ConfigurationPolicyProvider> managed_platform_provider_; 164 scoped_ptr<ConfigurationPolicyProvider> platform_provider_;
166 scoped_ptr<ConfigurationPolicyProvider> recommended_platform_provider_;
167 165
168 scoped_ptr<CloudPolicyProvider> managed_cloud_provider_; 166 scoped_ptr<CloudPolicyProvider> managed_cloud_provider_;
169 scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_; 167 scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_;
170 168
171 #if defined(OS_CHROMEOS) 169 #if defined(OS_CHROMEOS)
172 scoped_ptr<CloudPolicyDataStore> device_data_store_; 170 scoped_ptr<CloudPolicyDataStore> device_data_store_;
173 scoped_ptr<CloudPolicySubsystem> device_cloud_policy_subsystem_; 171 scoped_ptr<CloudPolicySubsystem> device_cloud_policy_subsystem_;
174 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; 172 scoped_ptr<EnterpriseInstallAttributes> install_attributes_;
175 #endif 173 #endif
176 174
(...skipping 23 matching lines...) Expand all
200 #if defined(OS_CHROMEOS) 198 #if defined(OS_CHROMEOS)
201 scoped_ptr<AppPackUpdater> app_pack_updater_; 199 scoped_ptr<AppPackUpdater> app_pack_updater_;
202 #endif 200 #endif
203 201
204 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 202 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
205 }; 203 };
206 204
207 } // namespace policy 205 } // namespace policy
208 206
209 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 207 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698