summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation/location_provider.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 03:01:49 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 03:01:49 +0000
commit6bd4083b2fbaa7eb92a549aa2c78950adee2ae9e (patch)
tree107491ca0b140e596c9e7d5ceb4b200d31f8d607 /content/browser/geolocation/location_provider.h
parent95e8108cbc0c398b9499c54974d49ebabeb3be00 (diff)
downloadchromium_src-6bd4083b2fbaa7eb92a549aa2c78950adee2ae9e.zip
chromium_src-6bd4083b2fbaa7eb92a549aa2c78950adee2ae9e.tar.gz
chromium_src-6bd4083b2fbaa7eb92a549aa2c78950adee2ae9e.tar.bz2
Move geolocation code to content namespace.
TBR=scottmg Review URL: https://codereview.chromium.org/11276058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/geolocation/location_provider.h')
-rw-r--r--content/browser/geolocation/location_provider.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/content/browser/geolocation/location_provider.h b/content/browser/geolocation/location_provider.h
index 11824e6..67b124a 100644
--- a/content/browser/geolocation/location_provider.h
+++ b/content/browser/geolocation/location_provider.h
@@ -20,15 +20,14 @@
class GURL;
-namespace content {
-class AccessTokenStore;
-struct Geoposition;
-}
-
namespace net {
class URLRequestContextGetter;
}
+namespace content {
+class AccessTokenStore;
+struct Geoposition;
+
// The base class used by all location providers.
class CONTENT_EXPORT LocationProviderBase
: NON_EXPORTED_BASE(public base::NonThreadSafe) {
@@ -68,7 +67,7 @@ class CONTENT_EXPORT LocationProviderBase
virtual bool StartProvider(bool high_accuracy) = 0;
virtual void StopProvider() = 0;
// Gets the current best position estimate.
- virtual void GetPosition(content::Geoposition* position) = 0;
+ virtual void GetPosition(Geoposition* position) = 0;
// Provides a hint to the provider that new location data is needed as soon
// as possible. Default implementation does nothing.
virtual void UpdatePosition() {}
@@ -95,10 +94,12 @@ class CONTENT_EXPORT LocationProviderBase
// Factory functions for the various types of location provider to abstract
// over the platform-dependent implementations.
CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider(
- content::AccessTokenStore* access_token_store,
+ AccessTokenStore* access_token_store,
net::URLRequestContextGetter* context,
const GURL& url,
const string16& access_token);
LocationProviderBase* NewSystemLocationProvider();
+} // namespace content
+
#endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_