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

Unified Diff: chrome/browser/geolocation/location_provider.h

Issue 603040: Add support for top level geolocation arbitrator, and access token persistenc... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/location_provider.h
===================================================================
--- chrome/browser/geolocation/location_provider.h (revision 38890)
+++ chrome/browser/geolocation/location_provider.h (working copy)
@@ -17,26 +17,14 @@
#include "base/non_thread_safe.h"
#include "base/string16.h"
+class AccessTokenStore;
class GURL;
-struct Position;
class URLRequestContextGetter;
+struct Position;
// The base class used by all location providers.
class LocationProviderBase : public NonThreadSafe {
public:
- // Provides storage for the access token used in the network request.
- // Normally the client (i.e. geolocation controller) implements this, but
- // also allows mocking for testing.
- class AccessTokenStore {
- public:
- virtual bool SetAccessToken(const GURL& url,
- const string16& access_token) = 0;
- virtual bool GetAccessToken(const GURL& url, string16* access_token) = 0;
-
- protected:
- virtual ~AccessTokenStore() {}
- };
-
// Clients of the location provider must implement this interface. All call-
// backs to this interface will happen in the context of the thread on which
// the location provider was created.
@@ -104,7 +92,7 @@
LocationProviderBase* NewMockLocationProvider();
LocationProviderBase* NewGpsLocationProvider();
LocationProviderBase* NewNetworkLocationProvider(
- LocationProviderBase::AccessTokenStore* access_token_store,
+ AccessTokenStore* access_token_store,
URLRequestContextGetter* context,
const GURL& url,
const string16& host_name);
« no previous file with comments | « chrome/browser/geolocation/location_arbitrator.cc ('k') | chrome/browser/geolocation/network_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698