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

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

Issue 474433003: Cleaner organization of WifiDataProvider code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test compilation. Created 6 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: content/browser/geolocation/network_location_provider.h
diff --git a/content/browser/geolocation/network_location_provider.h b/content/browser/geolocation/network_location_provider.h
index daf0c8b4417e5175ef16e4d430f74334f4e5e6eb..709ffad728fa58f56c1ffba9dc0da479d9920401 100644
--- a/content/browser/geolocation/network_location_provider.h
+++ b/content/browser/geolocation/network_location_provider.h
@@ -17,7 +17,7 @@
#include "base/threading/thread.h"
#include "content/browser/geolocation/location_provider_base.h"
#include "content/browser/geolocation/network_location_request.h"
-#include "content/browser/geolocation/wifi_data_provider.h"
+#include "content/browser/geolocation/wifi_data_provider_manager.h"
#include "content/common/content_export.h"
#include "content/public/common/geoposition.h"
@@ -83,7 +83,7 @@ class NetworkLocationProvider
void RequestPosition();
// Gets called when new wifi data is available.
- void OnWifiDataUpdate(WifiDataProvider* provider);
+ void OnWifiDataUpdate(WifiDataProviderManager* provider);
timvolodine 2014/08/18 15:21:42 provider -> manager as argument name would probabl
Michael van Ouwerkerk 2014/08/19 13:02:39 Done.
// Internal helper used by OnWifiDataUpdate.
void OnWifiDataUpdated();
@@ -98,9 +98,9 @@ class NetworkLocationProvider
scoped_refptr<AccessTokenStore> access_token_store_;
// The wifi data provider, acquired via global factories.
- WifiDataProvider* wifi_data_provider_;
+ WifiDataProviderManager* wifi_data_provider_manager_;
- WifiDataProvider::WifiDataUpdateCallback wifi_data_update_callback_;
+ WifiDataProviderManager::WifiDataUpdateCallback wifi_data_update_callback_;
// The wifi data and a flag to indicate if the data set is complete.
WifiData wifi_data_;

Powered by Google App Engine
This is Rietveld 408576698