Index: chromeos/network/network_state_handler.h |
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h |
index 7f49c1813d73cff22cc89238864869c9839e7aa1..4cd397b5b918de6435c7992ec9def16fa016cab4 100644 |
--- a/chromeos/network/network_state_handler.h |
+++ b/chromeos/network/network_state_handler.h |
@@ -34,6 +34,7 @@ namespace chromeos { |
class DeviceState; |
class NetworkState; |
+class NetworkStateBase; |
class NetworkStateHandlerObserver; |
class NetworkStateHandlerTest; |
class NetworkTypePattern; |
@@ -168,6 +169,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; |
@@ -202,6 +207,12 @@ class CHROMEOS_EXPORT NetworkStateHandler |
const std::string& check_portal_list() const { return check_portal_list_; } |
+ // Returns the FavoriteState of the EthernetEAP service, which contains the |
+ // EAP parameters used by |ethernet|. If the |ethernet| is not connected using |
+ // EAP, returns NULL. |
+ const FavoriteState* GetEAPForEthernet( |
+ const NetworkStateBase* ethernet) const; |
+ |
// Generates a DictionaryValue of all NetworkState properties. Currently |
// provided for debugging purposes only. |
void GetNetworkStatePropertiesForTest( |
@@ -300,7 +311,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. |