Chromium Code Reviews| Index: chromeos/network/network_state.h |
| diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h |
| index 6e7890b93bad5dff04b1d6549cdce8de24839a3f..8bba4e470debe392fdccd7f8b8539eca779266d2 100644 |
| --- a/chromeos/network/network_state.h |
| +++ b/chromeos/network/network_state.h |
| @@ -36,6 +36,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
| // Accessors |
| const std::string& security() const { return security_; } |
| const std::string& ip_address() const { return ip_address_; } |
| + const std::string& dns_servers() const { return dns_servers_; } |
| const std::string& device_path() const { return device_path_; } |
| const std::string& guid() const { return guid_; } |
| const std::string& connection_state() const { return connection_state_; } |
| @@ -66,14 +67,21 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
| void set_ip_address(const std::string& ip_address) { |
| ip_address_ = ip_address; |
| } |
| + void set_dns_servers(const std::string& dns_servers) { |
| + dns_servers_ = dns_servers; |
| + } |
| // Common Network Service properties |
| std::string security_; |
| std::string device_path_; |
| std::string guid_; |
| - std::string ip_address_; |
| std::string connection_state_; |
| std::string error_; |
| + // IPConfig properties. |
| + // Note: These do not correspond to actual Shill.Service properties |
| + // but are derived from the service's corresponding IPConfig object. |
| + std::string ip_address_; |
| + std::string dns_servers_; |
|
pneubeck (no reviews)
2013/03/28 10:37:54
Why does dns_servers have to be a string?
If anybo
gauravsh
2013/03/28 18:48:54
I guess the reverse question is - why does it need
stevenjb
2013/03/28 19:27:13
I don't know that I would say that there was a *go
|
| // Wireless properties |
| int signal_strength_; |
| // Cellular properties |