OLD | NEW |
---|---|
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> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/chromeos/login/users/affiliation.h" | 15 #include "chrome/browser/chromeos/login/users/affiliation.h" |
16 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 16 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
17 #include "chrome/browser/policy/chrome_browser_policy_connector.h" | 17 #include "chrome/browser/policy/chrome_browser_policy_connector.h" |
18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
19 | 19 |
20 class PrefRegistrySimple; | 20 class PrefRegistrySimple; |
21 class PrefService; | 21 class PrefService; |
22 | 22 |
23 namespace chromeos { | |
24 namespace attestation { | |
25 class AttestationFlow; | |
26 } | |
27 } | |
28 | |
23 namespace net { | 29 namespace net { |
24 class URLRequestContextGetter; | 30 class URLRequestContextGetter; |
25 } | 31 } |
26 | 32 |
27 namespace policy { | 33 namespace policy { |
28 | 34 |
29 class AffiliatedCloudPolicyInvalidator; | 35 class AffiliatedCloudPolicyInvalidator; |
30 class AffiliatedInvalidationServiceProvider; | 36 class AffiliatedInvalidationServiceProvider; |
31 class AffiliatedRemoteCommandsInvalidator; | 37 class AffiliatedRemoteCommandsInvalidator; |
32 class BluetoothPolicyHandler; | 38 class BluetoothPolicyHandler; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 | 141 |
136 chromeos::AffiliationIDSet GetDeviceAffiliationIDs() const; | 142 chromeos::AffiliationIDSet GetDeviceAffiliationIDs() const; |
137 | 143 |
138 private: | 144 private: |
139 // Set the timezone as soon as the policies are available. | 145 // Set the timezone as soon as the policies are available. |
140 void SetTimezoneIfPolicyAvailable(); | 146 void SetTimezoneIfPolicyAvailable(); |
141 | 147 |
142 // Restarts the device cloud policy initializer, because the device's | 148 // Restarts the device cloud policy initializer, because the device's |
143 // registration status changed from registered to unregistered. | 149 // registration status changed from registered to unregistered. |
144 void RestartDeviceCloudPolicyInitializer(); | 150 void RestartDeviceCloudPolicyInitializer(); |
151 std::unique_ptr<chromeos::attestation::AttestationFlow> | |
pastarmovj
2016/08/29 11:51:35
Please add a new line and document this function.
The one and only Dr. Crash
2016/08/29 19:55:32
Done, except for the second line because 'git cl f
pastarmovj
2016/08/29 22:08:51
Sure whatever the formatter says. Who are we to ar
| |
152 CreateAttestationFlow(); | |
145 | 153 |
146 // Components of the device cloud policy implementation. | 154 // Components of the device cloud policy implementation. |
147 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_; | 155 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_; |
148 std::unique_ptr<EnterpriseInstallAttributes> install_attributes_; | 156 std::unique_ptr<EnterpriseInstallAttributes> install_attributes_; |
149 std::unique_ptr<AffiliatedInvalidationServiceProvider> | 157 std::unique_ptr<AffiliatedInvalidationServiceProvider> |
150 affiliated_invalidation_service_provider_; | 158 affiliated_invalidation_service_provider_; |
151 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; | 159 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; |
152 PrefService* local_state_; | 160 PrefService* local_state_; |
153 std::unique_ptr<DeviceCloudPolicyInitializer> | 161 std::unique_ptr<DeviceCloudPolicyInitializer> |
154 device_cloud_policy_initializer_; | 162 device_cloud_policy_initializer_; |
(...skipping 17 matching lines...) Expand all Loading... | |
172 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 180 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
173 | 181 |
174 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 182 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
175 | 183 |
176 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 184 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
177 }; | 185 }; |
178 | 186 |
179 } // namespace policy | 187 } // namespace policy |
180 | 188 |
181 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 189 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
OLD | NEW |