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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // |allowed_modes| specifies acceptable DEVICE_MODE_* constants for | 49 // |allowed_modes| specifies acceptable DEVICE_MODE_* constants for |
50 // enrollment. | 50 // enrollment. |
51 void StartEnrollment(const std::string& auth_token, | 51 void StartEnrollment(const std::string& auth_token, |
52 bool is_auto_enrollment, | 52 bool is_auto_enrollment, |
53 const AllowedDeviceModes& allowed_modes, | 53 const AllowedDeviceModes& allowed_modes, |
54 const EnrollmentCallback& callback); | 54 const EnrollmentCallback& callback); |
55 | 55 |
56 // Cancels a pending enrollment operation, if any. | 56 // Cancels a pending enrollment operation, if any. |
57 void CancelEnrollment(); | 57 void CancelEnrollment(); |
58 | 58 |
| 59 // CloudPolicyManager: |
| 60 virtual void Shutdown() OVERRIDE; |
| 61 |
59 // CloudPolicyStore::Observer: | 62 // CloudPolicyStore::Observer: |
60 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | 63 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; |
61 | 64 |
62 // Returns the device serial number, or an empty string if not available. | 65 // Returns the device serial number, or an empty string if not available. |
63 static std::string GetMachineID(); | 66 static std::string GetMachineID(); |
64 | 67 |
65 // Returns the machine model, or an empty string if not available. | 68 // Returns the machine model, or an empty string if not available. |
66 static std::string GetMachineModel(); | 69 static std::string GetMachineModel(); |
67 | 70 |
68 private: | 71 private: |
(...skipping 21 matching lines...) Expand all Loading... |
90 | 93 |
91 // Non-null if there is an enrollment operation pending. | 94 // Non-null if there is an enrollment operation pending. |
92 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; | 95 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; |
93 | 96 |
94 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 97 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
95 }; | 98 }; |
96 | 99 |
97 } // namespace policy | 100 } // namespace policy |
98 | 101 |
99 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 102 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
OLD | NEW |