Chromium Code Reviews| Index: net/base/network_change_notifier.h |
| diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h |
| index 731c305bebbf6279a0dd4e10d41488a3dbe4d3d4..58a30e3ca0ab25c7b7fbd5bf34a6d761923be6a4 100644 |
| --- a/net/base/network_change_notifier.h |
| +++ b/net/base/network_change_notifier.h |
| @@ -130,9 +130,13 @@ class NET_EXPORT NetworkChangeNotifier { |
| // |false| is inconclusive; even if some link is up, it is uncertain |
| // whether a particular connection attempt to a particular remote site |
| // will be successfully. |
| - static bool IsOffline() { |
| - return GetConnectionType() == CONNECTION_NONE; |
| - } |
| + static bool IsOffline(); |
| + |
| + // Returns true if the current connection type uses WWAN. |
|
pauljensen
2012/10/12 14:01:15
I'd prefer "Celluar" to "WWAN" as its more common
|
| + static bool IsOverWWAN(); |
|
pauljensen
2012/10/12 14:01:15
Slight preference to "IsOn" or "IsUsing" over "IsO
|
| + |
| + // Returns true if |type| uses WWAN. |
| + static bool IsOverWWAN(ConnectionType type); |
| // Like Create(), but for use in tests. The mock object doesn't monitor any |
| // events, it merely rebroadcasts notifications when requested. |