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

Unified Diff: chromeos/network/network_state_handler.h

Issue 15899015: Add CheckPortalList manager property to NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: force manager property update in shill manager client stub implementation 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
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state_handler.h
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
index a361e2504950a5eac7e71c2b3f33f5f3c216e3c9..8f5d9068d324cc7c0bff012e8479c9baffbd8cf0 100644
--- a/chromeos/network/network_state_handler.h
+++ b/chromeos/network/network_state_handler.h
@@ -162,7 +162,11 @@ class CHROMEOS_EXPORT NetworkStateHandler
// Set the user initiated connecting network.
void SetConnectingNetwork(const std::string& service_path);
+ // Set the list of devices on which portal check is enabled.
+ void SetCheckPortalList(const std::string& check_portal_list);
+
const std::string& connecting_network() const { return connecting_network_; }
+ const std::string& check_portal_list() const { return check_portal_list_; }
// Generates a DictionaryValue of all NetworkState properties. Currently
// provided for debugging purposes only.
@@ -177,6 +181,10 @@ class CHROMEOS_EXPORT NetworkStateHandler
static const char kMatchTypeMobile[];
static const char kMatchTypeNonVirtual[];
+ // Default set of comma separated interfaces on which to enable
+ // portal checking.
+ static const char kDefaultCheckPortalList[];
+
protected:
friend class NetworkHandler;
NetworkStateHandler();
@@ -211,6 +219,11 @@ class CHROMEOS_EXPORT NetworkStateHandler
const std::string& key,
const base::Value& value) OVERRIDE;
+ // Called by ShillPropertyHandler when the portal check list manager property
+ // changes.
+ virtual void CheckPortalListChanged(
+ const std::string& check_portal_list) OVERRIDE;
+
// Sends NetworkManagerChanged() to observers and logs an event.
virtual void NotifyManagerPropertyChanged() OVERRIDE;
@@ -281,6 +294,9 @@ class CHROMEOS_EXPORT NetworkStateHandler
// TODO(stevenjb): Move this to NetworkConfigurationHandler.
std::string connecting_network_;
+ // List of interfaces on which portal check is enabled.
+ std::string check_portal_list_;
+
// Callbacks to run when a scan for the technology type completes.
ScanCompleteCallbackMap scan_complete_callbacks_;
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698