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

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

Issue 10916235: Record policy usage statistics every 24 hours. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed compilation Created 8 years, 3 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
« 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 namespace policy { 23 namespace policy {
24 24
25 class AppPackUpdater; 25 class AppPackUpdater;
26 class CloudPolicyDataStore; 26 class CloudPolicyDataStore;
27 class CloudPolicyProvider; 27 class CloudPolicyProvider;
28 class CloudPolicySubsystem; 28 class CloudPolicySubsystem;
29 class ConfigurationPolicyProvider; 29 class ConfigurationPolicyProvider;
30 class DeviceManagementService; 30 class DeviceManagementService;
31 class NetworkConfigurationUpdater; 31 class NetworkConfigurationUpdater;
32 class PolicyService; 32 class PolicyService;
33 class PolicyStatisticsCollector;
33 class UserCloudPolicyManager; 34 class UserCloudPolicyManager;
34 class UserPolicyTokenCache; 35 class UserPolicyTokenCache;
35 36
36 // Manages the lifecycle of browser-global policy infrastructure, such as the 37 // Manages the lifecycle of browser-global policy infrastructure, such as the
37 // platform policy providers, device- and the user-cloud policy infrastructure. 38 // platform policy providers, device- and the user-cloud policy infrastructure.
38 // TODO(gfeher,mnissler): Factor out device and user specific methods into their 39 // TODO(gfeher,mnissler): Factor out device and user specific methods into their
39 // respective classes. 40 // respective classes.
40 class BrowserPolicyConnector : public content::NotificationObserver { 41 class BrowserPolicyConnector : public content::NotificationObserver {
41 public: 42 public:
42 // Builds an uninitialized BrowserPolicyConnector, suitable for testing. 43 // Builds an uninitialized BrowserPolicyConnector, suitable for testing.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 #if defined(OS_CHROMEOS) 197 #if defined(OS_CHROMEOS)
197 scoped_ptr<CloudPolicyDataStore> device_data_store_; 198 scoped_ptr<CloudPolicyDataStore> device_data_store_;
198 scoped_ptr<CloudPolicySubsystem> device_cloud_policy_subsystem_; 199 scoped_ptr<CloudPolicySubsystem> device_cloud_policy_subsystem_;
199 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; 200 scoped_ptr<EnterpriseInstallAttributes> install_attributes_;
200 #endif 201 #endif
201 202
202 scoped_ptr<UserPolicyTokenCache> user_policy_token_cache_; 203 scoped_ptr<UserPolicyTokenCache> user_policy_token_cache_;
203 scoped_ptr<CloudPolicyDataStore> user_data_store_; 204 scoped_ptr<CloudPolicyDataStore> user_data_store_;
204 scoped_ptr<CloudPolicySubsystem> user_cloud_policy_subsystem_; 205 scoped_ptr<CloudPolicySubsystem> user_cloud_policy_subsystem_;
205 206
207 scoped_ptr<PolicyStatisticsCollector> policy_statistics_collector_;
208
206 // Components of the new-style cloud policy implementation. 209 // Components of the new-style cloud policy implementation.
207 // TODO(mnissler): Remove the old-style components above once we have 210 // TODO(mnissler): Remove the old-style components above once we have
208 // completed the switch to the new cloud policy implementation. 211 // completed the switch to the new cloud policy implementation.
209 scoped_ptr<DeviceManagementService> device_management_service_; 212 scoped_ptr<DeviceManagementService> device_management_service_;
210 213
211 ProxyPolicyProvider user_cloud_policy_provider_; 214 ProxyPolicyProvider user_cloud_policy_provider_;
212 215
213 // Used to initialize the device policy subsystem once the message loops 216 // Used to initialize the device policy subsystem once the message loops
214 // are spinning. 217 // are spinning.
215 base::WeakPtrFactory<BrowserPolicyConnector> weak_ptr_factory_; 218 base::WeakPtrFactory<BrowserPolicyConnector> weak_ptr_factory_;
216 219
217 // Registers the provider for notification of successful Gaia logins. 220 // Registers the provider for notification of successful Gaia logins.
218 content::NotificationRegistrar registrar_; 221 content::NotificationRegistrar registrar_;
219 222
220 // Weak reference to the TokenService we are listening to for user cloud 223 // Weak reference to the TokenService we are listening to for user cloud
221 // policy authentication tokens. 224 // policy authentication tokens.
222 TokenService* token_service_; 225 TokenService* token_service_;
223 226
224 #if defined(OS_CHROMEOS) 227 #if defined(OS_CHROMEOS)
225 scoped_ptr<AppPackUpdater> app_pack_updater_; 228 scoped_ptr<AppPackUpdater> app_pack_updater_;
226 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 229 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
227 #endif 230 #endif
228 231
229 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 232 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
230 }; 233 };
231 234
232 } // namespace policy 235 } // namespace policy
233 236
234 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 237 #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