| 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 }; | 43 }; |
| 43 | 44 |
| 44 typedef base::Callback< | 45 typedef base::Callback< |
| 45 void(DeviceManagementStatus, | 46 void(DeviceManagementStatus, |
| 46 const enterprise_management::DeviceManagementResponse&)> Callback; | 47 const enterprise_management::DeviceManagementResponse&)> Callback; |
| 47 | 48 |
| 48 typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; | 49 typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; |
| 49 | 50 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 161 |
| 161 // Used to create tasks to run |Initialize| delayed on the UI thread. | 162 // Used to create tasks to run |Initialize| delayed on the UI thread. |
| 162 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 163 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 165 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace policy | 168 } // namespace policy |
| 168 | 169 |
| 169 #endif // CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 170 #endif // CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ |
| OLD | NEW |