Index: chromeos/network/network_state.h |
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h |
index 3f64a07ae6b86bbf5388e8ff7f70ef282ecc8e5c..99a8a2803c1e99c934eeb77ac7504f2bc85f7a73 100644 |
--- a/chromeos/network/network_state.h |
+++ b/chromeos/network/network_state.h |
@@ -7,6 +7,10 @@ |
#include "chromeos/network/managed_state.h" |
+namespace base { |
+class DictionaryValue; |
+} |
+ |
namespace chromeos { |
// Simple class to provide network state information about a network service. |
@@ -20,9 +24,15 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
virtual ~NetworkState(); |
// ManagedState overrides |
+ // If you change this method, update GetProperties too. |
virtual bool PropertyChanged(const std::string& key, |
const base::Value& value) OVERRIDE; |
+ // Fills |dictionary| with the state properties. All the properties that are |
+ // accepted by PropertyChanged are stored in |dictionary|, no other values are |
+ // stored. |
+ void GetProperties(base::DictionaryValue* dictionary) const; |
+ |
// Accessors |
const std::string& security() const { return security_; } |
const std::string& ip_address() const { return ip_address_; } |