Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_ANDROID_H_ | |
| 6 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_ANDROID_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "content/browser/geolocation/location_provider.h" | |
| 10 #include "content/public/common/geoposition.h" | |
| 11 | |
| 12 class AndroidLocationApiAdapter; | |
| 13 struct Geoposition; | |
| 14 | |
| 15 // Location provider for Android using the platform provider over JNI. | |
| 16 class LocationProviderAndroid : public LocationProviderBase { | |
| 17 public: | |
| 18 LocationProviderAndroid(); | |
| 19 virtual ~LocationProviderAndroid(); | |
| 20 | |
| 21 // Called by the AndroidLocationApiAdapter. | |
| 22 void NotifyNewGeoposition(const content::Geoposition& position); | |
| 23 | |
| 24 // LocationProvider. | |
|
bulach
2012/05/08 09:11:05
nit: LocationProviderBase
John Knottenbelt
2012/05/08 13:43:16
Done.
| |
| 25 virtual bool StartProvider(bool high_accuracy) OVERRIDE; | |
| 26 virtual void StopProvider() OVERRIDE; | |
| 27 virtual void GetPosition(content::Geoposition* position) OVERRIDE; | |
| 28 virtual void UpdatePosition() OVERRIDE; | |
| 29 virtual void OnPermissionGranted(const GURL& requesting_frame) OVERRIDE; | |
| 30 | |
| 31 private: | |
| 32 content::Geoposition last_position_; | |
| 33 }; | |
| 34 | |
| 35 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_ANDROID_H_ | |
| OLD | NEW |