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

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

Issue 2104193002: Geolocation: Extract GeolocationProvider::Delegate into GeolocationDelegate (no new code) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jam@ nit: content/browser/geolocation/geolocation_delegate.cc --> content/public/browser 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 f476522400fdbe4d306b92c7e7b6875c3e788298..c2cbf23e78f2f57117a1fec58596c3407ce73974 100644
--- a/content/browser/geolocation/location_arbitrator_impl.h
+++ b/content/browser/geolocation/location_arbitrator_impl.h
@@ -28,6 +28,7 @@ class URLRequestContextGetter;
namespace content {
class AccessTokenStore;
+class GeolocationDelegate;
class LocationProvider;
// This class is responsible for handling updates from multiple underlying
@@ -43,7 +44,7 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
typedef base::Callback<void(const Geoposition&)> LocationUpdateCallback;
LocationArbitratorImpl(const LocationUpdateCallback& callback,
- GeolocationProvider::Delegate* delegate);
+ GeolocationDelegate* delegate);
~LocationArbitratorImpl() override;
static GURL DefaultNetworkProviderURL();
@@ -68,7 +69,7 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
virtual std::unique_ptr<LocationProvider> NewSystemLocationProvider();
virtual base::Time GetTimeNow() const;
- GeolocationProvider::Delegate* GetDelegateForTesting() { return delegate_; }
+ GeolocationDelegate* GetDelegateForTesting() { return delegate_; }
private:
// Provider will either be added to |providers_| or
@@ -92,7 +93,7 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
const Geoposition& new_position,
bool from_same_provider) const;
- GeolocationProvider::Delegate* delegate_;
+ GeolocationDelegate* delegate_;
scoped_refptr<AccessTokenStore> access_token_store_;
LocationUpdateCallback arbitrator_update_callback_;
« no previous file with comments | « content/browser/geolocation/geolocation_provider_impl.cc ('k') | content/browser/geolocation/location_arbitrator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698