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

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

Issue 486203004: Clean up WifiDataProvider(Manager) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't delete the DCHECK 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/wifi_data_provider.h
diff --git a/content/browser/geolocation/wifi_data_provider.h b/content/browser/geolocation/wifi_data_provider.h
index 207b3ffe594f28db2ee7ab37fea8739c45e9caf7..98d22963e9f7a074e4a254ca3d7194abacd716b6 100644
--- a/content/browser/geolocation/wifi_data_provider.h
+++ b/content/browser/geolocation/wifi_data_provider.h
@@ -19,8 +19,6 @@
namespace content {
-class WifiDataProviderManager;
-
class CONTENT_EXPORT WifiDataProvider
: public base::RefCountedThreadSafe<WifiDataProvider> {
public:
@@ -39,11 +37,7 @@ class CONTENT_EXPORT WifiDataProvider
// obtain.
virtual bool GetData(WifiData* data) = 0;
- // Sets the container of this class, which is of type WifiDataProviderManager.
- // This is required to pass as a parameter when calling a callback.
- void SetContainer(WifiDataProviderManager* container);
-
- typedef base::Callback<void(WifiDataProviderManager*)> WifiDataUpdateCallback;
+ typedef base::Closure WifiDataUpdateCallback;
void AddCallback(WifiDataUpdateCallback* callback);
@@ -68,8 +62,6 @@ class CONTENT_EXPORT WifiDataProvider
private:
void DoRunCallbacks();
- WifiDataProviderManager* container_;
-
// Reference to the client's message loop. All callbacks should happen in this
// context.
base::MessageLoop* client_loop_;
« no previous file with comments | « content/browser/geolocation/network_location_provider_unittest.cc ('k') | content/browser/geolocation/wifi_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698