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

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: Fixed unit test in Debug. 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
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/managed_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/managed_state.h
diff --git a/chromeos/network/managed_state.h b/chromeos/network/managed_state.h
index a1dd3ec3864924949a404e93eccb449d564fa540..7f9875e45054b3359887de1e2f31c06fcaea49af 100644
--- a/chromeos/network/managed_state.h
+++ b/chromeos/network/managed_state.h
@@ -21,10 +21,11 @@ namespace chromeos {
class DeviceState;
class FavoriteState;
class NetworkState;
+class NetworkTypePattern;
// 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 +75,8 @@ class ManagedState {
update_requested_ = update_requested;
}
+ bool Matches(const NetworkTypePattern& pattern) const;
+
protected:
ManagedState(ManagedType type, const std::string& path);
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/managed_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698