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

Unified Diff: chromeos/network/network_state.h

Issue 14566009: Add NetworkConnectionHandler class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback from gauravsh Created 7 years, 7 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
Index: chromeos/network/network_state.h
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h
index 1e89638961f78c716dbf5992b0f6509c6a86f522..895654f9d17d9627fa8a7f9f0bad2584fdf38dec 100644
--- a/chromeos/network/network_state.h
+++ b/chromeos/network/network_state.h
@@ -37,6 +37,10 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
// stored.
void GetProperties(base::DictionaryValue* dictionary) const;
+ // Similar to GetProperties but only sets properties accepted by
+ // Manager.ConfigureService.
+ void GetConfigProperties(base::DictionaryValue* dictionary) const;
pneubeck (no reviews) 2013/05/13 09:29:36 not used anymore. maybe needed in the future, but
stevenjb 2013/05/13 20:25:52 Done.
+
// Accessors
const std::string& security() const { return security_; }
const std::string& ip_address() const { return ip_address_; }
@@ -51,6 +55,9 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
int priority() const { return priority_; }
// Wireless property accessors
int signal_strength() const { return signal_strength_; }
+ bool connectable() const { return connectable_; }
+ // Wifi property accessors
+ bool passphrase_required() const { return passphrase_required_; }
// Cellular property accessors
const std::string& technology() const { return technology_; }
const std::string& activation_state() const { return activation_state_; }
@@ -103,9 +110,11 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
std::vector<std::string> dns_servers_;
// Wireless properties
int signal_strength_;
+ bool connectable_;
// Wifi properties
std::string hex_ssid_;
std::string country_code_;
+ bool passphrase_required_;
// Cellular properties
std::string technology_;
std::string activation_state_;

Powered by Google App Engine
This is Rietveld 408576698