diff options
author | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 00:50:37 +0000 |
---|---|---|
committer | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 00:50:37 +0000 |
commit | 4adfc3b9f3248205a61829893ef7a604bb89e38b (patch) | |
tree | 58169e658344404baa8fef6a73de8f5e2aeb234e /components/wifi/wifi_service_win.cc | |
parent | e1d0d62afb1c251c976e498df738460f6211a29d (diff) | |
download | chromium_src-4adfc3b9f3248205a61829893ef7a604bb89e38b.zip chromium_src-4adfc3b9f3248205a61829893ef7a604bb89e38b.tar.gz chromium_src-4adfc3b9f3248205a61829893ef7a604bb89e38b.tar.bz2 |
Added GetState, GetManagedProperties, CreateNetwork methods to WiFiService.
Initially implemented only to satisfy Networking Private Api browser_tests.
Moved hard-coded test data for NetworkingPrivateApiTest into fake_wifi_service.cc
BUG=267667
Review URL: https://codereview.chromium.org/100493002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238835 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/wifi/wifi_service_win.cc')
-rw-r--r-- | components/wifi/wifi_service_win.cc | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/components/wifi/wifi_service_win.cc b/components/wifi/wifi_service_win.cc index efaaa9b..f34e3b7 100644 --- a/components/wifi/wifi_service_win.cc +++ b/components/wifi/wifi_service_win.cc @@ -152,38 +152,38 @@ class WiFiServiceImpl : public WiFiService, base::NonThreadSafe { virtual void UnInitialize() OVERRIDE; - // Get Properties of network identified by |network_guid|. Populates - // |properties| on success, |error| on failure. virtual void GetProperties(const std::string& network_guid, DictionaryValue* properties, std::string* error) OVERRIDE; - // Set Properties of network identified by |network_guid|. Populates |error| - // on failure. + virtual void GetManagedProperties(const std::string& network_guid, + DictionaryValue* managed_properties, + std::string* error) OVERRIDE; + + virtual void GetState(const std::string& network_guid, + DictionaryValue* properties, + std::string* error) OVERRIDE; + virtual void SetProperties(const std::string& network_guid, scoped_ptr<base::DictionaryValue> properties, std::string* error) OVERRIDE; - // Get list of visible networks of |network_type| (one of onc::network_type). - // Populates |network_list| on success. + virtual void CreateNetwork(bool shared, + scoped_ptr<base::DictionaryValue> properties, + std::string* network_guid, + std::string* error) OVERRIDE; + virtual void GetVisibleNetworks(const std::string& network_type, ListValue* network_list) OVERRIDE; - // Request network scan. Send |NetworkListChanged| event on completion. virtual void RequestNetworkScan() OVERRIDE; - // Start connect to network identified by |network_guid|. Populates |error| - // on failure. virtual void StartConnect(const std::string& network_guid, std::string* error) OVERRIDE; - // Start disconnect from network identified by |network_guid|. Populates - // |error| on failure. virtual void StartDisconnect(const std::string& network_guid, std::string* error) OVERRIDE; - // Set observers to run when |NetworksChanged| and |NetworksListChanged| - // events needs to be sent. Notifications are posted on |message_loop_proxy|. virtual void SetEventObservers( scoped_refptr<base::MessageLoopProxy> message_loop_proxy, const NetworkGuidListCallback& networks_changed_observer, @@ -443,6 +443,18 @@ void WiFiServiceImpl::GetProperties(const std::string& network_guid, CheckError(error_code, kWiFiServiceError, error); } +void WiFiServiceImpl::GetManagedProperties(const std::string& network_guid, + DictionaryValue* managed_properties, + std::string* error) { + CheckError(ERROR_CALL_NOT_IMPLEMENTED, kWiFiServiceError, error); +} + +void WiFiServiceImpl::GetState(const std::string& network_guid, + DictionaryValue* properties, + std::string* error) { + CheckError(ERROR_CALL_NOT_IMPLEMENTED, kWiFiServiceError, error); +} + void WiFiServiceImpl::SetProperties( const std::string& network_guid, scoped_ptr<base::DictionaryValue> properties, @@ -459,6 +471,14 @@ void WiFiServiceImpl::SetProperties( properties.release()); } +void WiFiServiceImpl::CreateNetwork( + bool shared, + scoped_ptr<base::DictionaryValue> properties, + std::string* network_guid, + std::string* error) { + CheckError(ERROR_CALL_NOT_IMPLEMENTED, kWiFiServiceError, error); +} + void WiFiServiceImpl::GetVisibleNetworks(const std::string& network_type, ListValue* network_list) { if (!network_type.empty() && |