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

Unified Diff: chromeos/network/device_state.h

Issue 19509002: Add support for Device.ProposeScan to NetworkDeviceHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed gauravsh@'s comments. Created 7 years, 5 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 | « no previous file | 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 08bc6fb002f726d123e7df71377681bc458e4457..00a6cdc8b415ea44c4aa1e3d13c750e8af070a05 100644
--- a/chromeos/network/device_state.h
+++ b/chromeos/network/device_state.h
@@ -7,6 +7,7 @@
#include "base/values.h"
#include "chromeos/network/managed_state.h"
+#include "chromeos/network/network_util.h"
namespace chromeos {
@@ -14,6 +15,8 @@ namespace chromeos {
// see network_state.h for usage guidelines.
class CHROMEOS_EXPORT DeviceState : public ManagedState {
public:
+ typedef std::vector<CellularScanResult> CellularScanResults;
+
explicit DeviceState(const std::string& path);
virtual ~DeviceState();
@@ -38,6 +41,7 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
const std::string& imei() const { return imei_; }
const std::string& iccid() const { return iccid_; }
const std::string& mdn() const { return mdn_; }
+ const CellularScanResults& scan_results() const { return scan_results_; }
const DictionaryValue& properties() const { return properties_; }
// Returns true if the technology family is GSM and sim_present_ is false.
@@ -61,6 +65,7 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
std::string imei_;
std::string iccid_;
std::string mdn_;
+ CellularScanResults scan_results_;
// Keep all Device properties in a dictionary. Devices are limited and should
// change rarely if ever, so the overhead for this is small.
DictionaryValue properties_;
« no previous file with comments | « no previous file | chromeos/network/device_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698