summaryrefslogtreecommitdiffstats
path: root/components/wifi/wifi_service.h
diff options
context:
space:
mode:
authormef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 18:25:17 +0000
committermef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 18:25:17 +0000
commite425d0367f95faebf357a0bd38e6e15750512ca1 (patch)
tree798b51ee7e6900a2585eb7bee4fa8fcb39b71475 /components/wifi/wifi_service.h
parent67675306efb33be9b362be04d6bf76ce8acff8c7 (diff)
downloadchromium_src-e425d0367f95faebf357a0bd38e6e15750512ca1.zip
chromium_src-e425d0367f95faebf357a0bd38e6e15750512ca1.tar.gz
chromium_src-e425d0367f95faebf357a0bd38e6e15750512ca1.tar.bz2
Implement Networking Private API CreateNetwork function on Windows. Allows connection to hidden WiFi networks.
Defaults to TKIP encryption for WAPPSK and AES encryption for WAP2PSK. Exact encryption to use will have to be determined during Connect. TBR=cpu@chromium.org for +third_party/libxml to DEPS. BUG=267667 Review URL: https://codereview.chromium.org/105153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/wifi/wifi_service.h')
-rw-r--r--components/wifi/wifi_service.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/wifi/wifi_service.h b/components/wifi/wifi_service.h
index 9fc8411..6a288af 100644
--- a/components/wifi/wifi_service.h
+++ b/components/wifi/wifi_service.h
@@ -130,6 +130,10 @@ class WIFI_EXPORT WiFiService {
std::string bssid;
std::string type;
std::string security;
+ // |password| field is used to pass wifi password for network creation via
+ // |CreateNetwork| or connection via |StartConnect|. It does not persist
+ // once operation is completed.
+ std::string password;
// WiFi Signal Strength. 0..100
uint32 signal_strength;
bool auto_connect;
@@ -139,6 +143,7 @@ class WIFI_EXPORT WiFiService {
std::string json_extra; // Extra JSON properties for unit tests
scoped_ptr<base::DictionaryValue> ToValue(bool network_list) const;
+ // Updates only properties set in |value|.
bool UpdateFromValue(const base::DictionaryValue& value);
static std::string MacAddressAsString(const uint8 mac_as_int[6]);
static bool OrderByType(const NetworkProperties& l,