| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // If set, the device will start the enterprise enrollment OOBE. | 79 // If set, the device will start the enterprise enrollment OOBE. |
| 80 void SetDeviceEnrollmentAutoStart(); | 80 void SetDeviceEnrollmentAutoStart(); |
| 81 | 81 |
| 82 // CloudPolicyManager: | 82 // CloudPolicyManager: |
| 83 void Shutdown() override; | 83 void Shutdown() override; |
| 84 | 84 |
| 85 // Pref registration helper. | 85 // Pref registration helper. |
| 86 static void RegisterPrefs(PrefRegistrySimple* registry); | 86 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 87 | 87 |
| 88 // Returns the device serial number, or an empty string if not available. | 88 // Returns the device serial number, or an empty string if unavailable |
| 89 // (possibly due to the device having already been enrolled or claimed by a |
| 90 // local user). |
| 89 static std::string GetMachineID(); | 91 static std::string GetMachineID(); |
| 90 | 92 |
| 91 // Returns the machine model, or an empty string if not available. | 93 // Returns the machine model, or an empty string if not available. |
| 92 static std::string GetMachineModel(); | 94 static std::string GetMachineModel(); |
| 93 | 95 |
| 94 // Returns the mode for using zero-touch enrollment. | 96 // Returns the mode for using zero-touch enrollment. |
| 95 static ZeroTouchEnrollmentMode GetZeroTouchEnrollmentMode(); | 97 static ZeroTouchEnrollmentMode GetZeroTouchEnrollmentMode(); |
| 96 | 98 |
| 97 // Returns the robot 'email address' associated with the device robot | 99 // Returns the robot 'email address' associated with the device robot |
| 98 // account (sometimes called a service account) associated with this device | 100 // account (sometimes called a service account) associated with this device |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 attestation_policy_observer_; | 161 attestation_policy_observer_; |
| 160 | 162 |
| 161 base::ObserverList<Observer, true> observers_; | 163 base::ObserverList<Observer, true> observers_; |
| 162 | 164 |
| 163 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 165 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
| 164 }; | 166 }; |
| 165 | 167 |
| 166 } // namespace policy | 168 } // namespace policy |
| 167 | 169 |
| 168 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |