| 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
|
|
|