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

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

Issue 12676017: Adding policy support to the new network configuration stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to local helper functions and fixed some nits. Created 7 years, 8 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
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 24 matching lines...) Expand all
35 class PolicyService; 35 class PolicyService;
36 class PolicyStatisticsCollector; 36 class PolicyStatisticsCollector;
37 37
38 #if defined(OS_CHROMEOS) 38 #if defined(OS_CHROMEOS)
39 class AppPackUpdater; 39 class AppPackUpdater;
40 class DeviceCloudPolicyManagerChromeOS; 40 class DeviceCloudPolicyManagerChromeOS;
41 class DeviceLocalAccountPolicyProvider; 41 class DeviceLocalAccountPolicyProvider;
42 class DeviceLocalAccountPolicyService; 42 class DeviceLocalAccountPolicyService;
43 class EnterpriseInstallAttributes; 43 class EnterpriseInstallAttributes;
44 class NetworkConfigurationUpdater; 44 class NetworkConfigurationUpdater;
45 class NetworkConfigurationUpdater2;
45 class UserCloudPolicyManagerChromeOS; 46 class UserCloudPolicyManagerChromeOS;
46 #endif 47 #endif
47 48
48 // Manages the lifecycle of browser-global policy infrastructure, such as the 49 // Manages the lifecycle of browser-global policy infrastructure, such as the
49 // platform policy providers, device- and the user-cloud policy infrastructure. 50 // platform policy providers, device- and the user-cloud policy infrastructure.
50 class BrowserPolicyConnector { 51 class BrowserPolicyConnector {
51 public: 52 public:
52 // Builds an uninitialized BrowserPolicyConnector, suitable for testing. 53 // Builds an uninitialized BrowserPolicyConnector, suitable for testing.
53 // Init() should be called to create and start the policy machinery. 54 // Init() should be called to create and start the policy machinery.
54 BrowserPolicyConnector(); 55 BrowserPolicyConnector();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 UserAffiliation GetUserAffiliation(const std::string& user_name); 114 UserAffiliation GetUserAffiliation(const std::string& user_name);
114 115
115 DeviceManagementService* device_management_service() { 116 DeviceManagementService* device_management_service() {
116 return device_management_service_.get(); 117 return device_management_service_.get();
117 } 118 }
118 119
119 #if defined(OS_CHROMEOS) 120 #if defined(OS_CHROMEOS)
120 AppPackUpdater* GetAppPackUpdater(); 121 AppPackUpdater* GetAppPackUpdater();
121 122
122 NetworkConfigurationUpdater* GetNetworkConfigurationUpdater(); 123 NetworkConfigurationUpdater* GetNetworkConfigurationUpdater();
124 NetworkConfigurationUpdater2* GetNetworkConfigurationUpdater2();
123 125
124 net::CertTrustAnchorProvider* GetCertTrustAnchorProvider(); 126 net::CertTrustAnchorProvider* GetCertTrustAnchorProvider();
125 127
126 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() { 128 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() {
127 return device_cloud_policy_manager_.get(); 129 return device_cloud_policy_manager_.get();
128 } 130 }
129 UserCloudPolicyManagerChromeOS* GetUserCloudPolicyManager() { 131 UserCloudPolicyManagerChromeOS* GetUserCloudPolicyManager() {
130 return user_cloud_policy_manager_.get(); 132 return user_cloud_policy_manager_.get();
131 } 133 }
132 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() { 134 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 226
225 scoped_ptr<DeviceManagementService> device_management_service_; 227 scoped_ptr<DeviceManagementService> device_management_service_;
226 228
227 // Used to initialize the device policy subsystem once the message loops 229 // Used to initialize the device policy subsystem once the message loops
228 // are spinning. 230 // are spinning.
229 base::WeakPtrFactory<BrowserPolicyConnector> weak_ptr_factory_; 231 base::WeakPtrFactory<BrowserPolicyConnector> weak_ptr_factory_;
230 232
231 #if defined(OS_CHROMEOS) 233 #if defined(OS_CHROMEOS)
232 scoped_ptr<AppPackUpdater> app_pack_updater_; 234 scoped_ptr<AppPackUpdater> app_pack_updater_;
233 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 235 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
236 scoped_ptr<NetworkConfigurationUpdater2> network_configuration_updater2_;
234 #endif 237 #endif
235 238
236 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 239 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
237 }; 240 };
238 241
239 } // namespace policy 242 } // namespace policy
240 243
241 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 244 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698