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

Unified Diff: net/base/network_change_notifier.h

Issue 1549613002: Makes NetworkChangeType enum public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@datagram
Patch Set: Removes ForTests method. Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.h
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index f532889b0af51a8f43d54250f712c2657e9a4537..c6c0126853512c81e43e194fd7002ca99acb3b57 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -102,6 +102,15 @@ class NET_EXPORT NetworkChangeNotifier {
SUBTYPE_LAST = SUBTYPE_OTHER
};
+ // Types of network changes specified to
+ // NotifyObserversOfSpecificNetworkChange.
+ enum NetworkChangeType {
+ CONNECTED,
+ DISCONNECTED,
+ SOON_TO_DISCONNECT,
+ MADE_DEFAULT
+ };
+
class NET_EXPORT IPAddressObserver {
public:
// Will be called when the IP address of the primary interface changes.
@@ -441,15 +450,6 @@ class NET_EXPORT NetworkChangeNotifier {
};
protected:
- // Types of network changes specified to
- // NotifyObserversOfSpecificNetworkChange.
- enum NetworkChangeType {
- CONNECTED,
- DISCONNECTED,
- SOON_TO_DISCONNECT,
- MADE_DEFAULT
- };
-
// NetworkChanged signal is calculated from the IPAddressChanged and
// ConnectionTypeChanged signals. Delay parameters control how long to delay
// producing NetworkChanged signal after particular input signals so as to
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698