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

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>
@@ -131,6 +132,7 @@
PROPERTY_INDEX_SERVING_OPERATOR,
PROPERTY_INDEX_SIGNAL_STRENGTH,
PROPERTY_INDEX_SIM_LOCK,
+ PROPERTY_INDEX_SSID,
PROPERTY_INDEX_STATE,
PROPERTY_INDEX_SUPPORT_NETWORK_SCAN,
PROPERTY_INDEX_TECHNOLOGY_FAMILY,
@@ -673,6 +675,9 @@
NetworkParser* network_parser() { return network_parser_.get(); }
void SetNetworkParser(NetworkParser* parser);
+ // Updates property_map_ for the corresponding property index.
+ void UpdatePropertyMap(PropertyIndex index, const base::Value& value);
+
// Set the state and update flags if necessary.
void SetState(ConnectionState state);
@@ -702,6 +707,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 +803,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);
};
« no previous file with comments | « chrome/browser/chromeos/cros/native_network_parser.cc ('k') | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698