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

Side by Side Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h

Issue 2638623006: Merge {Device,User}ActiveDirectoryPolicyManager into a single class (Closed)
Patch Set: Have factories return unique_ptr Created 3 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 namespace net { 32 namespace net {
33 class URLRequestContextGetter; 33 class URLRequestContextGetter;
34 } 34 }
35 35
36 namespace policy { 36 namespace policy {
37 37
38 class AffiliatedCloudPolicyInvalidator; 38 class AffiliatedCloudPolicyInvalidator;
39 class AffiliatedInvalidationServiceProvider; 39 class AffiliatedInvalidationServiceProvider;
40 class AffiliatedRemoteCommandsInvalidator; 40 class AffiliatedRemoteCommandsInvalidator;
41 class BluetoothPolicyHandler; 41 class BluetoothPolicyHandler;
42 class DeviceActiveDirectoryPolicyManager; 42 class ActiveDirectoryPolicyManager;
43 class DeviceCloudPolicyInitializer; 43 class DeviceCloudPolicyInitializer;
44 class DeviceLocalAccountPolicyService; 44 class DeviceLocalAccountPolicyService;
45 struct EnrollmentConfig; 45 struct EnrollmentConfig;
46 class NetworkConfigurationUpdater; 46 class NetworkConfigurationUpdater;
47 class ProxyPolicyProvider; 47 class ProxyPolicyProvider;
48 class ServerBackedStateKeysBroker; 48 class ServerBackedStateKeysBroker;
49 49
50 // Extends ChromeBrowserPolicyConnector with the setup specific to Chrome OS. 50 // Extends ChromeBrowserPolicyConnector with the setup specific to Chrome OS.
51 class BrowserPolicyConnectorChromeOS 51 class BrowserPolicyConnectorChromeOS
52 : public ChromeBrowserPolicyConnector, 52 : public ChromeBrowserPolicyConnector,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() 100 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig()
101 // for details. 101 // for details.
102 EnrollmentConfig GetPrescribedEnrollmentConfig() const; 102 EnrollmentConfig GetPrescribedEnrollmentConfig() const;
103 103
104 // May be nullptr, e.g. for devices managed by Active Directory. 104 // May be nullptr, e.g. for devices managed by Active Directory.
105 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() const { 105 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() const {
106 return device_cloud_policy_manager_; 106 return device_cloud_policy_manager_;
107 } 107 }
108 108
109 // May be nullptr, e.g. for cloud-managed devices. 109 // May be nullptr, e.g. for cloud-managed devices.
110 DeviceActiveDirectoryPolicyManager* GetDeviceActiveDirectoryPolicyManager() 110 ActiveDirectoryPolicyManager* GetDeviceActiveDirectoryPolicyManager() const {
111 const {
112 return device_active_directory_policy_manager_; 111 return device_active_directory_policy_manager_;
113 } 112 }
114 113
115 // May be nullptr, e.g. for devices managed by Active Directory. 114 // May be nullptr, e.g. for devices managed by Active Directory.
116 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() const { 115 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() const {
117 return device_cloud_policy_initializer_.get(); 116 return device_cloud_policy_initializer_.get();
118 } 117 }
119 118
120 // May be nullptr, e.g. for devices managed by Active Directory. 119 // May be nullptr, e.g. for devices managed by Active Directory.
121 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() const { 120 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() const {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // cryptohome client. 173 // cryptohome client.
175 std::unique_ptr<chromeos::attestation::AttestationFlow> 174 std::unique_ptr<chromeos::attestation::AttestationFlow>
176 CreateAttestationFlow(); 175 CreateAttestationFlow();
177 176
178 // Components of the device cloud policy implementation. 177 // Components of the device cloud policy implementation.
179 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_; 178 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_;
180 std::unique_ptr<chromeos::InstallAttributes> install_attributes_; 179 std::unique_ptr<chromeos::InstallAttributes> install_attributes_;
181 std::unique_ptr<AffiliatedInvalidationServiceProvider> 180 std::unique_ptr<AffiliatedInvalidationServiceProvider>
182 affiliated_invalidation_service_provider_; 181 affiliated_invalidation_service_provider_;
183 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_ = nullptr; 182 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_ = nullptr;
184 DeviceActiveDirectoryPolicyManager* device_active_directory_policy_manager_ = 183 ActiveDirectoryPolicyManager* device_active_directory_policy_manager_ =
185 nullptr; 184 nullptr;
186 PrefService* local_state_ = nullptr; 185 PrefService* local_state_ = nullptr;
187 std::unique_ptr<DeviceCloudPolicyInitializer> 186 std::unique_ptr<DeviceCloudPolicyInitializer>
188 device_cloud_policy_initializer_; 187 device_cloud_policy_initializer_;
189 std::unique_ptr<DeviceLocalAccountPolicyService> 188 std::unique_ptr<DeviceLocalAccountPolicyService>
190 device_local_account_policy_service_; 189 device_local_account_policy_service_;
191 std::unique_ptr<AffiliatedCloudPolicyInvalidator> 190 std::unique_ptr<AffiliatedCloudPolicyInvalidator>
192 device_cloud_policy_invalidator_; 191 device_cloud_policy_invalidator_;
193 std::unique_ptr<AffiliatedRemoteCommandsInvalidator> 192 std::unique_ptr<AffiliatedRemoteCommandsInvalidator>
194 device_remote_commands_invalidator_; 193 device_remote_commands_invalidator_;
(...skipping 11 matching lines...) Expand all
206 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 205 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
207 206
208 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 207 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
209 208
210 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 209 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
211 }; 210 };
212 211
213 } // namespace policy 212 } // namespace policy
214 213
215 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 214 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698