| OLD | NEW |
| 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_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <bitset> | 8 #include <bitset> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 // Pref registration helper. | 82 // Pref registration helper. |
| 83 static void RegisterPrefs(PrefRegistrySimple* registry); | 83 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 84 | 84 |
| 85 // Returns the device serial number, or an empty string if not available. | 85 // Returns the device serial number, or an empty string if not available. |
| 86 static std::string GetMachineID(); | 86 static std::string GetMachineID(); |
| 87 | 87 |
| 88 // Returns the machine model, or an empty string if not available. | 88 // Returns the machine model, or an empty string if not available. |
| 89 static std::string GetMachineModel(); | 89 static std::string GetMachineModel(); |
| 90 | 90 |
| 91 // Returns the robot 'email address' associated with the device robot |
| 92 // account (sometimes called a service account) associated with this device |
| 93 // during enterprise enrollment. |
| 94 std::string GetRobotAccountId(); |
| 95 |
| 91 private: | 96 private: |
| 92 // Creates a new CloudPolicyClient. | 97 // Creates a new CloudPolicyClient. |
| 93 scoped_ptr<CloudPolicyClient> CreateClient(); | 98 scoped_ptr<CloudPolicyClient> CreateClient(); |
| 94 | 99 |
| 95 // Starts policy refreshes if |store_| indicates a managed device and the | 100 // Starts policy refreshes if |store_| indicates a managed device and the |
| 96 // necessary dependencies have been provided via Initialize(). | 101 // necessary dependencies have been provided via Initialize(). |
| 97 void StartIfManaged(); | 102 void StartIfManaged(); |
| 98 | 103 |
| 99 // Handles completion signaled by |enrollment_handler_|. | 104 // Handles completion signaled by |enrollment_handler_|. |
| 100 void EnrollmentCompleted(const EnrollmentCallback& callback, | 105 void EnrollmentCompleted(const EnrollmentCallback& callback, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 116 | 121 |
| 117 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> | 122 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> |
| 118 attestation_policy_observer_; | 123 attestation_policy_observer_; |
| 119 | 124 |
| 120 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 125 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
| 121 }; | 126 }; |
| 122 | 127 |
| 123 } // namespace policy | 128 } // namespace policy |
| 124 | 129 |
| 125 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 130 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |