Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11312)

Unified Diff: chromeos/network/network_state.h

Issue 12634019: NetworkChangeNotifierChromeos: Handle IPConfig property changes on the default network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: AddServiceWithIPConfig Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698