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

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: Rabase and rename arguments to manager 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..7d0d6b3e592039d91bb59841c792a6e0723c362f 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* manager);
// 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_;
« no previous file with comments | « content/browser/geolocation/empty_wifi_data_provider.cc ('k') | content/browser/geolocation/network_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698