cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / wifi / network_properties.h
blob8483e98904a7d20c1eb362d9f1746ef81bedf185
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_WIFI_NETWORK_PROPERTIES_H_
6 #define COMPONENTS_WIFI_NETWORK_PROPERTIES_H_
8 #include <list>
9 #include <set>
10 #include <string>
12 #include "base/values.h"
13 #include "components/wifi/wifi_export.h"
15 namespace wifi {
17 typedef int32 Frequency;
19 enum FrequencyEnum {
20 kFrequencyAny = 0,
21 kFrequencyUnknown = 0,
22 kFrequency2400 = 2400,
23 kFrequency5000 = 5000
26 typedef std::set<Frequency> FrequencySet;
28 // Network Properties, can be used to parse the result of |GetProperties| and
29 // |GetVisibleNetworks|.
30 struct WIFI_EXPORT NetworkProperties {
31 NetworkProperties();
32 ~NetworkProperties();
34 std::string connection_state;
35 std::string guid;
36 std::string name;
37 std::string ssid;
38 std::string bssid;
39 std::string type;
40 std::string security;
41 // |password| field is used to pass wifi password for network creation via
42 // |CreateNetwork| or connection via |StartConnect|. It does not persist
43 // once operation is completed.
44 std::string password;
45 // WiFi Signal Strength. 0..100
46 uint32 signal_strength;
47 bool auto_connect;
48 Frequency frequency;
49 FrequencySet frequency_set;
51 scoped_ptr<base::DictionaryValue> ToValue(bool network_list) const;
52 // Updates only properties set in |value|.
53 bool UpdateFromValue(const base::DictionaryValue& value);
54 static std::string MacAddressAsString(const uint8 mac_as_int[6]);
55 static bool OrderByType(const NetworkProperties& l,
56 const NetworkProperties& r);
59 typedef std::list<NetworkProperties> NetworkList;
61 } // namespace wifi
63 #endif // COMPONENTS_WIFI_NETWORK_PROPERTIES_H_