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

Side by Side Diff: content/public/browser/geolocation_provider.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes 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 (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 CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
6 #define CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
7 7
8 #include "base/callback_list.h" 8 #include "base/callback_list.h"
9 #include "base/memory/scoped_ptr.h"
dcheng 2016/04/07 21:18:54 Meh.
9 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
10 11
11 namespace content { 12 namespace content {
12 struct Geoposition; 13 struct Geoposition;
13 14
14 // This is the main API to the geolocation subsystem. The application will hold 15 // This is the main API to the geolocation subsystem. The application will hold
15 // a single instance of this class and can register multiple clients to be 16 // a single instance of this class and can register multiple clients to be
16 // notified of location changes: 17 // notified of location changes:
17 // * Callbacks are registered by AddLocationUpdateCallback() and will keep 18 // * Callbacks are registered by AddLocationUpdateCallback() and will keep
18 // receiving updates until the returned subscription object is destructed. 19 // receiving updates until the returned subscription object is destructed.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // (crbug.com/125931). 56 // (crbug.com/125931).
56 virtual void OverrideLocationForTesting(const Geoposition& position) = 0; 57 virtual void OverrideLocationForTesting(const Geoposition& position) = 0;
57 58
58 protected: 59 protected:
59 virtual~GeolocationProvider() {} 60 virtual~GeolocationProvider() {}
60 }; 61 };
61 62
62 } // namespace content 63 } // namespace content
63 64
64 #endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ 65 #endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698