OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_WIFI_NETWORK_PROPERTIES_H_ | 5 #ifndef COMPONENTS_WIFI_NETWORK_PROPERTIES_H_ |
6 #define COMPONENTS_WIFI_NETWORK_PROPERTIES_H_ | 6 #define COMPONENTS_WIFI_NETWORK_PROPERTIES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 14 matching lines...) Expand all Loading... |
25 kFrequency2400 = 2400, | 25 kFrequency2400 = 2400, |
26 kFrequency5000 = 5000 | 26 kFrequency5000 = 5000 |
27 }; | 27 }; |
28 | 28 |
29 typedef std::set<Frequency> FrequencySet; | 29 typedef std::set<Frequency> FrequencySet; |
30 | 30 |
31 // Network Properties, can be used to parse the result of |GetProperties| and | 31 // Network Properties, can be used to parse the result of |GetProperties| and |
32 // |GetVisibleNetworks|. | 32 // |GetVisibleNetworks|. |
33 struct WIFI_EXPORT NetworkProperties { | 33 struct WIFI_EXPORT NetworkProperties { |
34 NetworkProperties(); | 34 NetworkProperties(); |
| 35 NetworkProperties(const NetworkProperties& other); |
35 ~NetworkProperties(); | 36 ~NetworkProperties(); |
36 | 37 |
37 std::string connection_state; | 38 std::string connection_state; |
38 std::string guid; | 39 std::string guid; |
39 std::string name; | 40 std::string name; |
40 std::string ssid; | 41 std::string ssid; |
41 std::string bssid; | 42 std::string bssid; |
42 std::string type; | 43 std::string type; |
43 std::string security; | 44 std::string security; |
44 // |password| field is used to pass wifi password for network creation via | 45 // |password| field is used to pass wifi password for network creation via |
(...skipping 12 matching lines...) Expand all Loading... |
57 static std::string MacAddressAsString(const uint8_t mac_as_int[6]); | 58 static std::string MacAddressAsString(const uint8_t mac_as_int[6]); |
58 static bool OrderByType(const NetworkProperties& l, | 59 static bool OrderByType(const NetworkProperties& l, |
59 const NetworkProperties& r); | 60 const NetworkProperties& r); |
60 }; | 61 }; |
61 | 62 |
62 typedef std::list<NetworkProperties> NetworkList; | 63 typedef std::list<NetworkProperties> NetworkList; |
63 | 64 |
64 } // namespace wifi | 65 } // namespace wifi |
65 | 66 |
66 #endif // COMPONENTS_WIFI_NETWORK_PROPERTIES_H_ | 67 #endif // COMPONENTS_WIFI_NETWORK_PROPERTIES_H_ |
OLD | NEW |