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

Side by Side Diff: content/browser/geofencing/geofencing_manager.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_GEOFENCING_GEOFENCING_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_MANAGER_H_
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_MANAGER_H_ 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory>
11 #include <string> 12 #include <string>
12 #include <vector> 13 #include <vector>
13 14
14 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "content/browser/geofencing/geofencing_registration_delegate.h" 18 #include "content/browser/geofencing/geofencing_registration_delegate.h"
19 #include "content/browser/service_worker/service_worker_context_observer.h" 19 #include "content/browser/service_worker/service_worker_context_observer.h"
20 #include "content/browser/service_worker/service_worker_storage.h" 20 #include "content/browser/service_worker/service_worker_storage.h"
21 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
22 #include "content/common/geofencing_types.h" 22 #include "content/common/geofencing_types.h"
23 #include "content/common/service_worker/service_worker_status_code.h" 23 #include "content/common/service_worker/service_worker_status_code.h"
24 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 24 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
25 25
26 namespace base { 26 namespace base {
27 template <typename T> 27 template <typename T>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 typedef std::map<int64_t, RegionIdRegistrationMap> 199 typedef std::map<int64_t, RegionIdRegistrationMap>
200 ServiceWorkerRegistrationsMap; 200 ServiceWorkerRegistrationsMap;
201 ServiceWorkerRegistrationsMap registrations_; 201 ServiceWorkerRegistrationsMap registrations_;
202 202
203 // Map of all registered regions by geofencing_registration_id. 203 // Map of all registered regions by geofencing_registration_id.
204 typedef std::map<int64_t, RegionIdRegistrationMap::iterator> 204 typedef std::map<int64_t, RegionIdRegistrationMap::iterator>
205 RegistrationIdRegistrationMap; 205 RegistrationIdRegistrationMap;
206 RegistrationIdRegistrationMap registrations_by_id_; 206 RegistrationIdRegistrationMap registrations_by_id_;
207 207
208 GeofencingService* service_; 208 GeofencingService* service_;
209 scoped_ptr<MockGeofencingService> mock_service_; 209 std::unique_ptr<MockGeofencingService> mock_service_;
210 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 210 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
211 211
212 DISALLOW_COPY_AND_ASSIGN(GeofencingManager); 212 DISALLOW_COPY_AND_ASSIGN(GeofencingManager);
213 }; 213 };
214 214
215 } // namespace content 215 } // namespace content
216 216
217 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_MANAGER_H_ 217 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gamepad/xbox_data_fetcher_mac.h ('k') | content/browser/geofencing/geofencing_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698