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

Unified Diff: chrome/browser/local_discovery/wifi/wifi_manager.h

Issue 288043004: Bootstrapping device lister plus tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wifi_lib1
Patch Set: Created 6 years, 7 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: 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
« no previous file with comments | « chrome/browser/local_discovery/wifi/mock_wifi_manager.cc ('k') | chrome/browser/local_discovery/wifi/wifi_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698