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

Unified Diff: net/base/network_change_notifier.cc

Issue 2776523003: Expose connection subtype from NetworkChangeNotifier (Closed)
Patch Set: Add test Created 3 years, 9 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.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index 0cfaaa38d259db9be27343bf487aaf3b88d1a6a0..f5bfa8cbf5e281cdbd97f545fd3c8a7478078b3c 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -547,6 +547,14 @@ NetworkChangeNotifier::GetConnectionType() {
}
// static
+NetworkChangeNotifier::ConnectionSubtype
+NetworkChangeNotifier::GetConnectionSubtype() {
+ return g_network_change_notifier
+ ? g_network_change_notifier->GetCurrentConnectionSubtype()
+ : SUBTYPE_UNKNOWN;
+}
+
+// static
void NetworkChangeNotifier::GetMaxBandwidthAndConnectionType(
double* max_bandwidth_mbps,
ConnectionType* connection_type) {
@@ -985,6 +993,11 @@ NetworkChangeNotifier::GetAddressTrackerInternal() const {
}
#endif
+NetworkChangeNotifier::ConnectionSubtype
+NetworkChangeNotifier::GetCurrentConnectionSubtype() const {
+ return SUBTYPE_UNKNOWN;
+}
+
void NetworkChangeNotifier::GetCurrentMaxBandwidthAndConnectionType(
double* max_bandwidth_mbps,
ConnectionType* connection_type) const {

Powered by Google App Engine
This is Rietveld 408576698