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

Side by Side Diff: device/geolocation/location_provider.h

Issue 2249283003: Hooks together Geolocation Feature in the Client and Engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lai
Patch Set: Merge with master. Created 4 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 DEVICE_GEOLOCATION_LOCATION_PROVIDER_H_ 5 #ifndef DEVICE_GEOLOCATION_LOCATION_PROVIDER_H_
6 #define DEVICE_GEOLOCATION_LOCATION_PROVIDER_H_ 6 #define DEVICE_GEOLOCATION_LOCATION_PROVIDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "device/geolocation/geoposition.h" 10 #include "device/geolocation/geoposition.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 class LocationProvider;
15
16 // The interface for providing location information. 14 // The interface for providing location information.
17 class DEVICE_GEOLOCATION_EXPORT LocationProvider { 15 class DEVICE_GEOLOCATION_EXPORT LocationProvider {
18 public: 16 public:
19 virtual ~LocationProvider() {} 17 virtual ~LocationProvider() {}
20 18
21 typedef base::Callback<void(const LocationProvider*, const Geoposition&)> 19 typedef base::Callback<void(const LocationProvider*, const Geoposition&)>
22 LocationProviderUpdateCallback; 20 LocationProviderUpdateCallback;
23 21
24 // This callback will be used to notify when a new Geoposition becomes 22 // This callback will be used to notify when a new Geoposition becomes
25 // available. 23 // available.
(...skipping 19 matching lines...) Expand all
45 // Called everytime permission is granted to a page for using geolocation. 43 // Called everytime permission is granted to a page for using geolocation.
46 // This may either be through explicit user action (e.g. responding to the 44 // This may either be through explicit user action (e.g. responding to the
47 // infobar prompt) or inferred from a persisted site permission. 45 // infobar prompt) or inferred from a persisted site permission.
48 // Note: See |StartProvider()| for more information. 46 // Note: See |StartProvider()| for more information.
49 virtual void OnPermissionGranted() = 0; 47 virtual void OnPermissionGranted() = 0;
50 }; 48 };
51 49
52 } // namespace device 50 } // namespace device
53 51
54 #endif // DEVICE_GEOLOCATION_LOCATION_PROVIDER_H_ 52 #endif // DEVICE_GEOLOCATION_LOCATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698