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

Unified Diff: chromeos/network/managed_state.h

Issue 23712002: Cleanup network type matching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/managed_state.h
diff --git a/chromeos/network/managed_state.h b/chromeos/network/managed_state.h
index a1dd3ec3864924949a404e93eccb449d564fa540..1db1be1995f276bb4d6ad01c71705317d452652b 100644
--- a/chromeos/network/managed_state.h
+++ b/chromeos/network/managed_state.h
@@ -24,7 +24,7 @@ class NetworkState;
// Base class for states managed by NetworkStateManger which are associated
// with a Shill path (e.g. service path or device path).
-class ManagedState {
+class CHROMEOS_EXPORT ManagedState {
public:
enum ManagedType {
MANAGED_TYPE_NETWORK,
@@ -74,6 +74,9 @@ class ManagedState {
update_requested_ = update_requested;
}
+ // Returns true if the network's |type()| is ethernet (with or without EAP).
+ bool IsTypeEthernet() const;
stevenjb 2013/08/28 15:51:30 This should really be IsTypeWired() and we should
pneubeck (no reviews) 2013/09/02 20:41:21 Done.
+
protected:
ManagedState(ManagedType type, const std::string& path);

Powered by Google App Engine
This is Rietveld 408576698