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

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: Fix license year (->2012) Created 8 years, 7 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) 2012 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 // LocationProviderBase.
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_
OLDNEW
« no previous file with comments | « content/browser/geolocation/location_provider.cc ('k') | content/browser/geolocation/location_provider_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698