| 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 07175e204dc7aff4f420421f15b1185cd52f0bb7..b5726b644f2b1b665afa57e5d997c0fce849c966 100644
|
| --- a/chrome/browser/local_discovery/wifi/wifi_manager.h
|
| +++ b/chrome/browser/local_discovery/wifi/wifi_manager.h
|
| @@ -41,6 +41,8 @@ struct WifiCredentials {
|
| std::string psk;
|
| };
|
|
|
| +class WifiManagerFactory;
|
| +
|
| // A class to manage listing, connecting to, and getting the credentials of WiFi
|
| // networks.
|
| class WifiManager {
|
| @@ -56,6 +58,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 {
|
| // it changes.
|
| virtual scoped_ptr<NetworkListWatcher> CreateNetworkListWatcher(
|
| const SSIDListCallback& callback) = 0;
|
| +
|
| + private:
|
| + static scoped_ptr<WifiManager> CreateDefault();
|
| +};
|
| +
|
| +class WifiManagerFactory {
|
| + public:
|
| + virtual ~WifiManagerFactory() {}
|
| +
|
| + virtual scoped_ptr<WifiManager> CreateWifiManager() = 0;
|
| };
|
|
|
| } // namespace wifi
|
|
|