| Index: chromeos/network/network_state.h
|
| diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h
|
| index 6e7890b93bad5dff04b1d6549cdce8de24839a3f..d63cd7c9c000890588f5e65b263be16c19a62494 100644
|
| --- a/chromeos/network/network_state.h
|
| +++ b/chromeos/network/network_state.h
|
| @@ -5,6 +5,9 @@
|
| #ifndef CHROMEOS_NETWORK_NETWORK_STATE_H_
|
| #define CHROMEOS_NETWORK_NETWORK_STATE_H_
|
|
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| #include "chromeos/network/managed_state.h"
|
|
|
| namespace base {
|
| @@ -36,6 +39,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::vector<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 +70,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::vector<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::vector<std::string> dns_servers_;
|
| // Wireless properties
|
| int signal_strength_;
|
| // Cellular properties
|
|
|