Chromium Code Reviews| Index: chrome/browser/chromeos/cros/network_library.h |
| =================================================================== |
| --- chrome/browser/chromeos/cros/network_library.h (revision 112004) |
| +++ chrome/browser/chromeos/cros/network_library.h (working copy) |
| @@ -6,6 +6,7 @@ |
| #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| #pragma once |
| +#include <map> |
| #include <string> |
| #include <vector> |
| @@ -673,6 +674,9 @@ |
| NetworkParser* network_parser() { return network_parser_.get(); } |
| void SetNetworkParser(NetworkParser* parser); |
| + // Updates the properties map for the corresponding property index. |
|
stevenjb
2011/11/30 17:36:20
nit: s/the properties map/|property_map_|/
Charlie Lee
2011/11/30 18:01:21
Done.
|
| + void UpdatePropertyMap(PropertyIndex index, const base::Value& value); |
| + |
| // Set the state and update flags if necessary. |
| void SetState(ConnectionState state); |
| @@ -702,6 +706,8 @@ |
| DictionaryValue* ui_data() { return &ui_data_; } |
| private: |
| + typedef std::map<PropertyIndex, base::Value*> PropertyMap; |
| + |
| // This allows NetworkParser and its subclasses access to device |
| // privates so that they can be reconstituted during parsing. The |
| // parsers only access things through the private set_ functions so |
| @@ -796,6 +802,10 @@ |
| // network layer. |
| scoped_ptr<NetworkParser> network_parser_; |
| + // This map stores the set of properties for the network. |
| + // Not all properties in this map are exposed via get methods. |
| + PropertyMap property_map_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(Network); |
| }; |