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

Unified Diff: chromeos/network/network_state_handler.h

Issue 23451044: Add an Ethernet EAP policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed remaining comments. # Created 7 years, 3 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_handler.h
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
index 8043cb3e1bf14e5fdf1c7b81888184026deb1938..84bd9cb90b195032e1a77d2d811caab2eac57e4c 100644
--- a/chromeos/network/network_state_handler.h
+++ b/chromeos/network/network_state_handler.h
@@ -172,6 +172,10 @@ class CHROMEOS_EXPORT NetworkStateHandler
// favorite is visible and retrieve the complete properties (and vice-versa).
void GetFavoriteList(FavoriteStateList* list) const;
+ // Like GetFavoriteList() but only returns favorites with matching |type|.
+ void GetFavoriteListByType(const NetworkTypePattern& type,
+ FavoriteStateList* list) const;
+
// Finds and returns a favorite state by |service_path| or NULL if not found.
const FavoriteState* GetFavoriteState(const std::string& service_path) const;
@@ -208,6 +212,12 @@ class CHROMEOS_EXPORT NetworkStateHandler
return check_portal_list_;
}
+ // Returns the FavoriteState of the EthernetEAP service, which contains the
+ // EAP parameters used by the ethernet with |service_path|. If |service_path|
+ // doesn't refer to an ethernet service or if the ethernet service is not
+ // connected using EAP, returns NULL.
+ const FavoriteState* GetEAPForEthernet(const std::string& service_path) const;
+
// Generates a DictionaryValue of all NetworkState properties. Currently
// provided for debugging purposes only.
void GetNetworkStatePropertiesForTest(
@@ -309,7 +319,7 @@ class CHROMEOS_EXPORT NetworkStateHandler
// Logs an event and notifies observers.
void OnDefaultNetworkChanged();
- // Notifies observers and updates connecting_network_.
+ // Notifies observers about changes to |network|.
void NetworkPropertiesUpdated(const NetworkState* network);
// Called whenever Device.Scanning state transitions to false.
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698