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

Unified Diff: net/base/network_change_notifier.h

Issue 307943004: Adds bluetooth connection type to NetworkChangeNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@netinfo
Patch Set: Updating spec url 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
« no previous file with comments | « content/renderer/net_info_helper.cc ('k') | net/base/network_change_notifier.cc » ('j') | 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 4671e4915b0e0de60ca70e031801aa2d3139ae6f..6b801bc7c424ead6326bde9bd2441bfeca4e30f9 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -32,8 +32,8 @@ class AddressTrackerLinux;
// destroyed on the same thread.
class NET_EXPORT NetworkChangeNotifier {
public:
- // Using the terminology of the Network Information API:
- // http://www.w3.org/TR/netinfo-api.
+ // This is a superset of the connection types in the NetInfo v3 specification:
+ // http://w3c.github.io/netinfo/.
enum ConnectionType {
CONNECTION_UNKNOWN = 0, // A connection exists, but its type is unknown.
// Also used as a default value.
@@ -43,7 +43,8 @@ class NET_EXPORT NetworkChangeNotifier {
CONNECTION_3G = 4,
CONNECTION_4G = 5,
CONNECTION_NONE = 6, // No connection.
- CONNECTION_LAST = CONNECTION_NONE
+ CONNECTION_BLUETOOTH = 7,
+ CONNECTION_LAST = CONNECTION_BLUETOOTH
};
class NET_EXPORT IPAddressObserver {
« no previous file with comments | « content/renderer/net_info_helper.cc ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698