| 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_DEVICE_MANAGEMENT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // DeviceManagementRequestJob describes a request to send to the device | 31 // DeviceManagementRequestJob describes a request to send to the device |
| 32 // management service. Jobs are created by DeviceManagementService. They can be | 32 // management service. Jobs are created by DeviceManagementService. They can be |
| 33 // canceled by deleting the object. | 33 // canceled by deleting the object. |
| 34 class DeviceManagementRequestJob { | 34 class DeviceManagementRequestJob { |
| 35 public: | 35 public: |
| 36 // Describes the job type. | 36 // Describes the job type. |
| 37 enum JobType { | 37 enum JobType { |
| 38 TYPE_AUTO_ENROLLMENT, | 38 TYPE_AUTO_ENROLLMENT, |
| 39 TYPE_REGISTRATION, | 39 TYPE_REGISTRATION, |
| 40 TYPE_API_AUTH_CODE_FETCH, |
| 40 TYPE_POLICY_FETCH, | 41 TYPE_POLICY_FETCH, |
| 41 TYPE_UNREGISTRATION, | 42 TYPE_UNREGISTRATION, |
| 42 TYPE_UPLOAD_CERTIFICATE, | 43 TYPE_UPLOAD_CERTIFICATE, |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 typedef base::Callback< | 46 typedef base::Callback< |
| 46 void(DeviceManagementStatus, | 47 void(DeviceManagementStatus, |
| 47 const enterprise_management::DeviceManagementResponse&)> Callback; | 48 const enterprise_management::DeviceManagementResponse&)> Callback; |
| 48 | 49 |
| 49 typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; | 50 typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 162 |
| 162 // Used to create tasks to run |Initialize| delayed on the UI thread. | 163 // Used to create tasks to run |Initialize| delayed on the UI thread. |
| 163 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 164 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; |
| 164 | 165 |
| 165 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 166 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace policy | 169 } // namespace policy |
| 169 | 170 |
| 170 #endif // CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 171 #endif // CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ |
| OLD | NEW |