Chromium Code Reviews| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 | 125 |
| 126 // The ID of URLFetchers created by the DeviceManagementService. This can be | 126 // The ID of URLFetchers created by the DeviceManagementService. This can be |
| 127 // used by tests that use a TestURLFetcherFactory to get the pending fetchers | 127 // used by tests that use a TestURLFetcherFactory to get the pending fetchers |
| 128 // created by the DeviceManagementService. | 128 // created by the DeviceManagementService. |
| 129 static const int kURLFetcherID; | 129 static const int kURLFetcherID; |
| 130 | 130 |
| 131 // Creates a new device management request job. Ownership is transferred to | 131 // Creates a new device management request job. Ownership is transferred to |
| 132 // the caller. | 132 // the caller. |
| 133 virtual DeviceManagementRequestJob* CreateJob( | 133 virtual DeviceManagementRequestJob* CreateJob( |
| 134 DeviceManagementRequestJob::JobType type, | 134 DeviceManagementRequestJob::JobType type, |
| 135 net::URLRequestContextGetter* request_context); | 135 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
|
bartfab (slow)
2014/08/29 09:42:38
Nit: #include "base/memory/ref_counted.h"
dcheng
2014/08/29 09:56:37
Done.
| |
| 136 | 136 |
| 137 // Schedules a task to run |Initialize| after |delay_milliseconds| had passed. | 137 // Schedules a task to run |Initialize| after |delay_milliseconds| had passed. |
| 138 void ScheduleInitialization(int64 delay_milliseconds); | 138 void ScheduleInitialization(int64 delay_milliseconds); |
| 139 | 139 |
| 140 // Makes the service stop all requests. | 140 // Makes the service stop all requests. |
| 141 void Shutdown(); | 141 void Shutdown(); |
| 142 | 142 |
| 143 // Gets the URL that the DMServer requests are sent to. | 143 // Gets the URL that the DMServer requests are sent to. |
| 144 std::string GetServerUrl(); | 144 std::string GetServerUrl(); |
| 145 | 145 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 | 183 |
| 184 // Used to create tasks to run |Initialize| delayed on the UI thread. | 184 // Used to create tasks to run |Initialize| delayed on the UI thread. |
| 185 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; | 185 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); | 187 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace policy | 190 } // namespace policy |
| 191 | 191 |
| 192 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ | 192 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ |
| OLD | NEW |