| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // CloudPolicyStore::Observer: | 68 // CloudPolicyStore::Observer: |
| 69 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | 69 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; |
| 70 | 70 |
| 71 // Returns the device serial number, or an empty string if not available. | 71 // Returns the device serial number, or an empty string if not available. |
| 72 static std::string GetMachineID(); | 72 static std::string GetMachineID(); |
| 73 | 73 |
| 74 // Returns the machine model, or an empty string if not available. | 74 // Returns the machine model, or an empty string if not available. |
| 75 static std::string GetMachineModel(); | 75 static std::string GetMachineModel(); |
| 76 | 76 |
| 77 // Returns the robot 'email address' associated with the device robot |
| 78 // account (sometimes called a service account) associated with this device |
| 79 // during enterprise enrollment. |
| 80 std::string GetRobotAccountID(); |
| 81 |
| 77 private: | 82 private: |
| 78 // Creates a new CloudPolicyClient. | 83 // Creates a new CloudPolicyClient. |
| 79 scoped_ptr<CloudPolicyClient> CreateClient(); | 84 scoped_ptr<CloudPolicyClient> CreateClient(); |
| 80 | 85 |
| 81 // Starts policy refreshes if |store_| indicates a managed device and the | 86 // Starts policy refreshes if |store_| indicates a managed device and the |
| 82 // necessary dependencies have been provided via Initialize(). | 87 // necessary dependencies have been provided via Initialize(). |
| 83 void StartIfManaged(); | 88 void StartIfManaged(); |
| 84 | 89 |
| 85 // Handles completion signaled by |enrollment_handler_|. | 90 // Handles completion signaled by |enrollment_handler_|. |
| 86 void EnrollmentCompleted(const EnrollmentCallback& callback, | 91 void EnrollmentCompleted(const EnrollmentCallback& callback, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 106 | 111 |
| 107 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> | 112 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> |
| 108 attestation_policy_observer_; | 113 attestation_policy_observer_; |
| 109 | 114 |
| 110 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 115 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
| 111 }; | 116 }; |
| 112 | 117 |
| 113 } // namespace policy | 118 } // namespace policy |
| 114 | 119 |
| 115 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 120 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |