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

Unified Diff: chromeos/network/device_state.h

Issue 267433005: Provide IPConfigs in networkingPrivate.GetProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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
« no previous file with comments | « chromeos/dbus/shill_ipconfig_client.cc ('k') | chromeos/network/device_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/device_state.h
diff --git a/chromeos/network/device_state.h b/chromeos/network/device_state.h
index bbbc93b6054aabf33bdbaeb23897b413ca8e4be6..1da679cd858d74843cb71c44d707c6d329e7298a 100644
--- a/chromeos/network/device_state.h
+++ b/chromeos/network/device_state.h
@@ -26,6 +26,9 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
virtual bool InitialPropertiesReceived(
const base::DictionaryValue& properties) OVERRIDE;
+ void IPConfigPropertiesChanged(const std::string& ip_config_path,
+ const base::DictionaryValue& properties);
+
// Accessors
const std::string& mac_address() const { return mac_address_; }
@@ -52,6 +55,7 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
// Do not use this. It exists temporarily for internet_options_handler.cc
// which is being deprecated.
const base::DictionaryValue& properties() const { return properties_; }
+ const base::DictionaryValue& ip_configs() const { return ip_configs_; }
// Ethernet specific accessors
bool eap_authentication_completed() const {
@@ -89,6 +93,9 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
// Keep all Device properties in a dictionary for now. See comment above.
base::DictionaryValue properties_;
+ // Dictionary of IPConfig properties, keyed by IpConfig path.
+ base::DictionaryValue ip_configs_;
+
DISALLOW_COPY_AND_ASSIGN(DeviceState);
};
« no previous file with comments | « chromeos/dbus/shill_ipconfig_client.cc ('k') | chromeos/network/device_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698