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

Unified Diff: device/geolocation/network_location_provider.h

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: In response to Wez's #73-75 comments. Created 4 years, 4 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: device/geolocation/network_location_provider.h
diff --git a/device/geolocation/network_location_provider.h b/device/geolocation/network_location_provider.h
index f47310425789ad83277d07f3a746df95302cbd51..7d6b1481c156b6991264be24fd83ea98711e2ecf 100644
--- a/device/geolocation/network_location_provider.h
+++ b/device/geolocation/network_location_provider.h
@@ -73,11 +73,13 @@ class NetworkLocationProvider : public base::NonThreadSafe,
// LocationProvider implementation
bool StartProvider(bool high_accuracy) override;
void StopProvider() override;
- void GetPosition(Geoposition* position) override;
- void RequestRefresh() override;
+ const Geoposition& GetPosition() override;
void OnPermissionGranted() override;
private:
+ // Ensures that fresh location data is gathered.
+ void RequestRefresh();
+
// Satisfies a position request from cache or network.
void RequestPosition();

Powered by Google App Engine
This is Rietveld 408576698