| 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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 
| 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_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 28 matching lines...) Expand all  Loading... | 
| 39   // Describes the job type. | 39   // Describes the job type. | 
| 40   enum JobType { | 40   enum JobType { | 
| 41     TYPE_AUTO_ENROLLMENT, | 41     TYPE_AUTO_ENROLLMENT, | 
| 42     TYPE_REGISTRATION, | 42     TYPE_REGISTRATION, | 
| 43     TYPE_API_AUTH_CODE_FETCH, | 43     TYPE_API_AUTH_CODE_FETCH, | 
| 44     TYPE_POLICY_FETCH, | 44     TYPE_POLICY_FETCH, | 
| 45     TYPE_UNREGISTRATION, | 45     TYPE_UNREGISTRATION, | 
| 46     TYPE_UPLOAD_CERTIFICATE, | 46     TYPE_UPLOAD_CERTIFICATE, | 
| 47     TYPE_DEVICE_STATE_RETRIEVAL, | 47     TYPE_DEVICE_STATE_RETRIEVAL, | 
| 48     TYPE_UPLOAD_STATUS, | 48     TYPE_UPLOAD_STATUS, | 
|  | 49     TYPE_REMOTE_COMMANDS, | 
| 49   }; | 50   }; | 
| 50 | 51 | 
| 51   typedef base::Callback< | 52   typedef base::Callback< | 
| 52       void(DeviceManagementStatus, int, | 53       void(DeviceManagementStatus, int, | 
| 53            const enterprise_management::DeviceManagementResponse&)> Callback; | 54            const enterprise_management::DeviceManagementResponse&)> Callback; | 
| 54 | 55 | 
| 55   typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; | 56   typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; | 
| 56 | 57 | 
| 57   virtual ~DeviceManagementRequestJob(); | 58   virtual ~DeviceManagementRequestJob(); | 
| 58 | 59 | 
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 187 | 188 | 
| 188   // Used to create tasks to run |Initialize| delayed on the UI thread. | 189   // Used to create tasks to run |Initialize| delayed on the UI thread. | 
| 189   base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 190   base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 
| 190 | 191 | 
| 191   DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 192   DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 
| 192 }; | 193 }; | 
| 193 | 194 | 
| 194 }  // namespace policy | 195 }  // namespace policy | 
| 195 | 196 | 
| 196 #endif  // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 197 #endif  // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 
| OLD | NEW | 
|---|