Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: chrome/browser/policy/cloud/device_management_service.h

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_constants.cc ('k') | chrome/browser/policy/cloud/device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698