| 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 27 matching lines...) Expand all  Loading... | 
| 38  public: | 38  public: | 
| 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_REMOTE_COMMANDS, | 
| 48   }; | 49   }; | 
| 49 | 50 | 
| 50   typedef base::Callback< | 51   typedef base::Callback< | 
| 51       void(DeviceManagementStatus, int, | 52       void(DeviceManagementStatus, int, | 
| 52            const enterprise_management::DeviceManagementResponse&)> Callback; | 53            const enterprise_management::DeviceManagementResponse&)> Callback; | 
| 53 | 54 | 
| 54   typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; | 55   typedef base::Callback<void(DeviceManagementRequestJob*)> RetryCallback; | 
| 55 | 56 | 
| 56   virtual ~DeviceManagementRequestJob(); | 57   virtual ~DeviceManagementRequestJob(); | 
| 57 | 58 | 
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 186 | 187 | 
| 187   // Used to create tasks to run |Initialize| delayed on the UI thread. | 188   // Used to create tasks to run |Initialize| delayed on the UI thread. | 
| 188   base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 189   base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 
| 189 | 190 | 
| 190   DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 191   DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 
| 191 }; | 192 }; | 
| 192 | 193 | 
| 193 }  // namespace policy | 194 }  // namespace policy | 
| 194 | 195 | 
| 195 #endif  // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 196 #endif  // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 
| OLD | NEW | 
|---|