OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_NETWORK_NETWORK_STATE_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_STATE_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 // stored. | 36 // stored. |
37 void GetProperties(base::DictionaryValue* dictionary) const; | 37 void GetProperties(base::DictionaryValue* dictionary) const; |
38 | 38 |
39 // Accessors | 39 // Accessors |
40 const std::string& security() const { return security_; } | 40 const std::string& security() const { return security_; } |
41 const std::string& ip_address() const { return ip_address_; } | 41 const std::string& ip_address() const { return ip_address_; } |
42 const std::vector<std::string>& dns_servers() const { return dns_servers_; } | 42 const std::vector<std::string>& dns_servers() const { return dns_servers_; } |
43 const std::string& device_path() const { return device_path_; } | 43 const std::string& device_path() const { return device_path_; } |
44 const std::string& guid() const { return guid_; } | 44 const std::string& guid() const { return guid_; } |
45 const std::string& connection_state() const { return connection_state_; } | 45 const std::string& connection_state() const { return connection_state_; } |
| 46 const std::string& profile_path() const { return profile_path_; } |
46 const std::string& error() const { return error_; } | 47 const std::string& error() const { return error_; } |
47 bool auto_connect() const { return auto_connect_; } | 48 bool auto_connect() const { return auto_connect_; } |
48 bool favorite() const { return favorite_; } | 49 bool favorite() const { return favorite_; } |
49 int priority() const { return priority_; } | 50 int priority() const { return priority_; } |
50 // Wireless property accessors | 51 // Wireless property accessors |
51 int signal_strength() const { return signal_strength_; } | 52 int signal_strength() const { return signal_strength_; } |
52 // Cellular property accessors | 53 // Cellular property accessors |
53 const std::string& technology() const { return technology_; } | 54 const std::string& technology() const { return technology_; } |
54 const std::string& activation_state() const { return activation_state_; } | 55 const std::string& activation_state() const { return activation_state_; } |
55 const std::string& roaming() const { return roaming_; } | 56 const std::string& roaming() const { return roaming_; } |
(...skipping 23 matching lines...) Expand all Loading... |
79 } | 80 } |
80 void set_dns_servers(const std::vector<std::string>& dns_servers) { | 81 void set_dns_servers(const std::vector<std::string>& dns_servers) { |
81 dns_servers_ = dns_servers; | 82 dns_servers_ = dns_servers; |
82 } | 83 } |
83 | 84 |
84 // Common Network Service properties | 85 // Common Network Service properties |
85 std::string security_; | 86 std::string security_; |
86 std::string device_path_; | 87 std::string device_path_; |
87 std::string guid_; | 88 std::string guid_; |
88 std::string connection_state_; | 89 std::string connection_state_; |
| 90 std::string profile_path_; |
89 std::string error_; | 91 std::string error_; |
90 bool auto_connect_; | 92 bool auto_connect_; |
91 bool favorite_; | 93 bool favorite_; |
92 int priority_; | 94 int priority_; |
93 // IPConfig properties. | 95 // IPConfig properties. |
94 // Note: These do not correspond to actual Shill.Service properties | 96 // Note: These do not correspond to actual Shill.Service properties |
95 // but are derived from the service's corresponding IPConfig object. | 97 // but are derived from the service's corresponding IPConfig object. |
96 std::string ip_address_; | 98 std::string ip_address_; |
97 std::vector<std::string> dns_servers_; | 99 std::vector<std::string> dns_servers_; |
98 // Wireless properties | 100 // Wireless properties |
99 int signal_strength_; | 101 int signal_strength_; |
100 // Cellular properties | 102 // Cellular properties |
101 std::string technology_; | 103 std::string technology_; |
102 std::string activation_state_; | 104 std::string activation_state_; |
103 std::string roaming_; | 105 std::string roaming_; |
104 bool activate_over_non_cellular_networks_; | 106 bool activate_over_non_cellular_networks_; |
105 bool cellular_out_of_credits_; | 107 bool cellular_out_of_credits_; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(NetworkState); | 109 DISALLOW_COPY_AND_ASSIGN(NetworkState); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace chromeos | 112 } // namespace chromeos |
111 | 113 |
112 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ | 114 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ |
OLD | NEW |