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

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

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 std::string GetServerUrl(); 147 std::string GetServerUrl();
148 148
149 private: 149 private:
150 typedef std::map<const net::URLFetcher*, 150 typedef std::map<const net::URLFetcher*,
151 DeviceManagementRequestJobImpl*> JobFetcherMap; 151 DeviceManagementRequestJobImpl*> JobFetcherMap;
152 typedef std::deque<DeviceManagementRequestJobImpl*> JobQueue; 152 typedef std::deque<DeviceManagementRequestJobImpl*> JobQueue;
153 153
154 friend class DeviceManagementRequestJobImpl; 154 friend class DeviceManagementRequestJobImpl;
155 155
156 // net::URLFetcherDelegate override. 156 // net::URLFetcherDelegate override.
157 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 157 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
158 158
159 // Starts processing any queued jobs. 159 // Starts processing any queued jobs.
160 void Initialize(); 160 void Initialize();
161 161
162 // Starts a job. 162 // Starts a job.
163 void StartJob(DeviceManagementRequestJobImpl* job); 163 void StartJob(DeviceManagementRequestJobImpl* job);
164 164
165 // Adds a job. Caller must make sure the job pointer stays valid until the job 165 // Adds a job. Caller must make sure the job pointer stays valid until the job
166 // completes or gets canceled via RemoveJob(). 166 // completes or gets canceled via RemoveJob().
167 void AddJob(DeviceManagementRequestJobImpl* job); 167 void AddJob(DeviceManagementRequestJobImpl* job);
(...skipping 18 matching lines...) Expand all
186 186
187 // Used to create tasks to run |Initialize| delayed on the UI thread. 187 // Used to create tasks to run |Initialize| delayed on the UI thread.
188 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; 188 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); 190 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService);
191 }; 191 };
192 192
193 } // namespace policy 193 } // namespace policy
194 194
195 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_ 195 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698