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

Unified Diff: net/base/network_change_notifier.h

Issue 298803006: NetInfo V3 support for browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment in network_change_notifier Created 6 years, 7 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
Index: net/base/network_change_notifier.h
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index 68d0afb4320195b5c5aabaeaa4c4deefd2740f85..4671e4915b0e0de60ca70e031801aa2d3139ae6f 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -35,13 +35,15 @@ class NET_EXPORT NetworkChangeNotifier {
// Using the terminology of the Network Information API:
// http://www.w3.org/TR/netinfo-api.
enum ConnectionType {
- CONNECTION_UNKNOWN = 0, // A connection exists, but its type is unknown.
+ CONNECTION_UNKNOWN = 0, // A connection exists, but its type is unknown.
+ // Also used as a default value.
CONNECTION_ETHERNET = 1,
Tom Sepez 2014/05/28 17:40:16 nit: maybe CONNECTION_FIRST = CONNECTION_UNKNOWN h
jkarlin 2014/05/28 18:00:46 Went with MAX_VALUE instead, thanks!
CONNECTION_WIFI = 2,
CONNECTION_2G = 3,
CONNECTION_3G = 4,
CONNECTION_4G = 5,
- CONNECTION_NONE = 6 // No connection.
+ CONNECTION_NONE = 6, // No connection.
+ CONNECTION_LAST = CONNECTION_NONE
};
class NET_EXPORT IPAddressObserver {

Powered by Google App Engine
This is Rietveld 408576698