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_POLICY_CLOUD_POLICY_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 const PolicyNamespaceKey& policy_ns_key) const; | 156 const PolicyNamespaceKey& policy_ns_key) const; |
157 | 157 |
158 DeviceManagementStatus status() const { | 158 DeviceManagementStatus status() const { |
159 return status_; | 159 return status_; |
160 } | 160 } |
161 | 161 |
162 protected: | 162 protected: |
163 // A set of PolicyNamespaceKeys to fetch. | 163 // A set of PolicyNamespaceKeys to fetch. |
164 typedef std::set<PolicyNamespaceKey> NamespaceSet; | 164 typedef std::set<PolicyNamespaceKey> NamespaceSet; |
165 | 165 |
| 166 // Callback for retries of registration requests. |
| 167 void OnRetryRegister(DeviceManagementRequestJob* job); |
| 168 |
166 // Callback for registration requests. | 169 // Callback for registration requests. |
167 void OnRegisterCompleted( | 170 void OnRegisterCompleted( |
168 DeviceManagementStatus status, | 171 DeviceManagementStatus status, |
169 const enterprise_management::DeviceManagementResponse& response); | 172 const enterprise_management::DeviceManagementResponse& response); |
170 | 173 |
171 // Callback for policy fetch requests. | 174 // Callback for policy fetch requests. |
172 void OnPolicyFetchCompleted( | 175 void OnPolicyFetchCompleted( |
173 DeviceManagementStatus status, | 176 DeviceManagementStatus status, |
174 const enterprise_management::DeviceManagementResponse& response); | 177 const enterprise_management::DeviceManagementResponse& response); |
175 | 178 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 213 |
211 ObserverList<Observer, true> observers_; | 214 ObserverList<Observer, true> observers_; |
212 | 215 |
213 private: | 216 private: |
214 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); | 217 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); |
215 }; | 218 }; |
216 | 219 |
217 } // namespace policy | 220 } // namespace policy |
218 | 221 |
219 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ | 222 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ |
OLD | NEW |