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.h | |
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.h')
-rw-r--r-- | components/wifi/wifi_service.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/wifi/wifi_service.h b/components/wifi/wifi_service.h index 49f8af4..9fc8411 100644 --- a/components/wifi/wifi_service.h +++ b/components/wifi/wifi_service.h @@ -48,12 +48,38 @@ class WIFI_EXPORT WiFiService { DictionaryValue* properties, std::string* error) = 0; + // Gets the merged properties of the network with id |network_guid| from the + // sources: User settings, shared settings, user policy, device policy and + // the currently active settings. Populates |managed_properties| on success, + // |error| on failure. + virtual void GetManagedProperties(const std::string& network_guid, + DictionaryValue* managed_properties, + std::string* error) = 0; + + // Get the cached read-only properties of the network with id |network_guid|. + // This is meant to be a higher performance function than |GetProperties|, + // which requires a round trip to query the networking subsystem. It only + // returns a subset of the properties returned by |GetProperties|. Populates + // |properties| on success, |error| on failure. + virtual void GetState(const std::string& network_guid, + DictionaryValue* properties, + std::string* error) = 0; + // Set Properties of network identified by |network_guid|. Populates |error| // on failure. virtual void SetProperties(const std::string& network_guid, scoped_ptr<base::DictionaryValue> properties, std::string* error) = 0; + // Creates a new network configuration from |properties|. If |shared| is true, + // share this network configuration with other users. If a matching configured + // network already exists, this will fail and populate |error|. On success + // populates the |network_guid| of the new network. + virtual void CreateNetwork(bool shared, + scoped_ptr<base::DictionaryValue> properties, + std::string* network_guid, + std::string* error) = 0; + // Get list of visible networks of |network_type| (one of onc::network_type). // Populates |network_list| on success. virtual void GetVisibleNetworks(const std::string& network_type, |