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

Unified Diff: content/browser/geolocation/location_arbitrator_impl.h

Issue 2028823002: Refactor to make BlimpLocationProvider accessible to content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Makes testing override location provider accessible Created 4 years, 6 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: content/browser/geolocation/location_arbitrator_impl.h
diff --git a/content/browser/geolocation/location_arbitrator_impl.h b/content/browser/geolocation/location_arbitrator_impl.h
index 60c9ac57a905d817611ca6e92531187aaa508083..3856dab1eb5268c761338247651f8b4de9286b5e 100644
--- a/content/browser/geolocation/location_arbitrator_impl.h
+++ b/content/browser/geolocation/location_arbitrator_impl.h
@@ -45,7 +45,7 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
static GURL DefaultNetworkProviderURL();
// LocationArbitrator
- void StartProviders(bool enable_high_accuracy) override;
+ void StartProviders(bool enable_high_accuracy, bool use_network) override;
void StopProviders() override;
void OnPermissionGranted() override;
bool HasPermissionBeenGranted() const override;
@@ -62,12 +62,14 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
const GURL& url,
const base::string16& access_token);
virtual LocationProvider* NewSystemLocationProvider();
+ virtual LocationProvider* GetOverrideSystemLocationProvider();
virtual base::Time GetTimeNow() const;
private:
// Takes ownership of |provider| on entry; it will either be added to
// |providers_| or deleted on error (e.g. it fails to start).
void RegisterProvider(LocationProvider* provider);
+ void RegisterSystemProvider();
void OnAccessTokenStoresLoaded(
AccessTokenStore::AccessTokenMap access_token_map,
net::URLRequestContextGetter* context_getter);

Powered by Google App Engine
This is Rietveld 408576698