Index: chrome/browser/local_discovery/wifi/wifi_manager.h |
diff --git a/chrome/browser/local_discovery/wifi/wifi_manager.h b/chrome/browser/local_discovery/wifi/wifi_manager.h |
index 370b66f56f21da7e2cbb360b9907f99d1e9f9570..ec608dbb20c9939481f9c02edcafbd37ad3cb23e 100644 |
--- a/chrome/browser/local_discovery/wifi/wifi_manager.h |
+++ b/chrome/browser/local_discovery/wifi/wifi_manager.h |
@@ -30,6 +30,8 @@ struct WifiCredentials { |
std::string psk; |
}; |
+class WifiManagerFactory; |
+ |
// Observer for the network list. Classes may implement this interface and call |
// |AddNetworkListObserver| to be notified of changes to the visible network |
// list. |
@@ -55,6 +57,8 @@ class WifiManager { |
static scoped_ptr<WifiManager> Create(); |
+ static void SetFactory(WifiManagerFactory* factory); |
+ |
// Start the wifi manager. This must be called before any other method calls. |
virtual void Start() = 0; |
@@ -90,6 +94,16 @@ class WifiManager { |
// Remove a network list observer. |
virtual void RemoveNetworkListObserver(NetworkListObserver* observer) = 0; |
+ |
+ private: |
+ static scoped_ptr<WifiManager> CreateDefault(); |
+}; |
+ |
+class WifiManagerFactory { |
+ public: |
+ virtual ~WifiManagerFactory() {} |
+ |
+ virtual scoped_ptr<WifiManager> CreateWifiManager() = 0; |
}; |
} // namespace wifi |