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_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
7 | 7 |
8 #include <bitset> | 8 #include <bitset> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Looks up the domain from |install_attributes_|. | 88 // Looks up the domain from |install_attributes_|. |
89 std::string GetEnrollmentRecoveryDomain() const; | 89 std::string GetEnrollmentRecoveryDomain() const; |
90 | 90 |
91 // Checks whether the user can cancel enrollment. | 91 // Checks whether the user can cancel enrollment. |
92 bool CanExitEnrollment() const; | 92 bool CanExitEnrollment() const; |
93 | 93 |
94 // Gets the domain this device is supposed to be enrolled to. | 94 // Gets the domain this device is supposed to be enrolled to. |
95 std::string GetForcedEnrollmentDomain() const; | 95 std::string GetForcedEnrollmentDomain() const; |
96 | 96 |
97 // CloudPolicyStore::Observer: | 97 // CloudPolicyStore::Observer: |
98 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | 98 virtual void OnStoreLoaded(CloudPolicyStore* store) override; |
99 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; | 99 virtual void OnStoreError(CloudPolicyStore* store) override; |
100 | 100 |
101 private: | 101 private: |
102 // Handles completion signaled by |enrollment_handler_|. | 102 // Handles completion signaled by |enrollment_handler_|. |
103 void EnrollmentCompleted(const EnrollmentCallback& enrollment_callback, | 103 void EnrollmentCompleted(const EnrollmentCallback& enrollment_callback, |
104 EnrollmentStatus status); | 104 EnrollmentStatus status); |
105 | 105 |
106 // Creates a new CloudPolicyClient. | 106 // Creates a new CloudPolicyClient. |
107 scoped_ptr<CloudPolicyClient> CreateClient( | 107 scoped_ptr<CloudPolicyClient> CreateClient( |
108 DeviceManagementService* device_management_service); | 108 DeviceManagementService* device_management_service); |
109 | 109 |
(...skipping 21 matching lines...) Expand all Loading... |
131 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; | 131 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; |
132 | 132 |
133 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; | 133 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; |
134 | 134 |
135 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); | 135 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); |
136 }; | 136 }; |
137 | 137 |
138 } // namespace policy | 138 } // namespace policy |
139 | 139 |
140 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 140 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
OLD | NEW |