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

Unified Diff: chrome/browser/chromeos/cros/network_library.h

Issue 8734013: Resubmit CL. See 8429004. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698