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

Side by Side Diff: content/browser/geolocation/location_provider_android.h

Issue 10209003: Upstream Android Geolocation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add OWNERS Created 8 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
(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/common/geoposition.h"
10 #include "content/browser/geolocation/location_provider.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 Geoposition& position);
23
24 // LocationProvider.
25 virtual bool StartProvider(bool high_accuracy) OVERRIDE;
26 virtual void StopProvider() OVERRIDE;
27 virtual void GetPosition(Geoposition* position) OVERRIDE;
28 virtual void UpdatePosition() OVERRIDE;
29 virtual void OnPermissionGranted(const GURL& requesting_frame) OVERRIDE;
30
31 private:
32 Geoposition last_position_;
33 };
34
35 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698