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

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: 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 | net/base/network_change_notifier.cc » ('j') | net/base/network_change_notifier.cc » ('J')
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..37368eaa5dadab4c067c9e256414a4d5e1663493 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.
@@ -390,6 +399,9 @@ class NET_EXPORT NetworkChangeNotifier {
static void NotifyObserversOfConnectionTypeChangeForTests(
ConnectionType type);
static void NotifyObserversOfNetworkChangeForTests(ConnectionType type);
+ static void NotifyObserversOfSpecificNetworkChangeForTests(
+ NetworkChangeType type,
+ NetworkHandle network);
static void NotifyObserversOfInitialDNSConfigReadForTests();
static void NotifyObserversOfMaxBandwidthChangeForTests(
double max_bandwidth_mbps,
@@ -441,15 +453,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 | net/base/network_change_notifier.cc » ('j') | net/base/network_change_notifier.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698