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

Side by Side Diff: components/policy/core/common/cloud/device_management_service.h

Issue 1543423002: Switch to standard integer types in components/policy/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 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 <stdint.h>
9
8 #include <deque> 10 #include <deque>
9 #include <map> 11 #include <map>
10 #include <string> 12 #include <string>
11 #include <vector> 13 #include <vector>
12 14
13 #include "base/basictypes.h"
14 #include "base/callback.h" 15 #include "base/callback.h"
15 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
17 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
18 #include "base/strings/string_split.h" 20 #include "base/strings/string_split.h"
19 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 21 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
20 #include "components/policy/policy_export.h" 22 #include "components/policy/policy_export.h"
21 #include "net/url_request/url_fetcher_delegate.h" 23 #include "net/url_request/url_fetcher_delegate.h"
22 #include "policy/proto/device_management_backend.pb.h" 24 #include "policy/proto/device_management_backend.pb.h"
23 25
24 26
25 namespace net { 27 namespace net {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // created by the DeviceManagementService. 137 // created by the DeviceManagementService.
136 static const int kURLFetcherID; 138 static const int kURLFetcherID;
137 139
138 // Creates a new device management request job. Ownership is transferred to 140 // Creates a new device management request job. Ownership is transferred to
139 // the caller. 141 // the caller.
140 virtual DeviceManagementRequestJob* CreateJob( 142 virtual DeviceManagementRequestJob* CreateJob(
141 DeviceManagementRequestJob::JobType type, 143 DeviceManagementRequestJob::JobType type,
142 const scoped_refptr<net::URLRequestContextGetter>& request_context); 144 const scoped_refptr<net::URLRequestContextGetter>& request_context);
143 145
144 // Schedules a task to run |Initialize| after |delay_milliseconds| had passed. 146 // Schedules a task to run |Initialize| after |delay_milliseconds| had passed.
145 void ScheduleInitialization(int64 delay_milliseconds); 147 void ScheduleInitialization(int64_t delay_milliseconds);
146 148
147 // Makes the service stop all requests. 149 // Makes the service stop all requests.
148 void Shutdown(); 150 void Shutdown();
149 151
150 // Gets the URL that the DMServer requests are sent to. 152 // Gets the URL that the DMServer requests are sent to.
151 std::string GetServerUrl(); 153 std::string GetServerUrl();
152 154
153 private: 155 private:
154 typedef std::map<const net::URLFetcher*, 156 typedef std::map<const net::URLFetcher*,
155 DeviceManagementRequestJobImpl*> JobFetcherMap; 157 DeviceManagementRequestJobImpl*> JobFetcherMap;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 192
191 // Used to create tasks to run |Initialize| delayed on the UI thread. 193 // Used to create tasks to run |Initialize| delayed on the UI thread.
192 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; 194 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); 196 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService);
195 }; 197 };
196 198
197 } // namespace policy 199 } // namespace policy
198 200
199 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ 201 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698