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

Unified Diff: net/android/network_change_notifier_android.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/android/network_change_notifier_android.h
diff --git a/net/android/network_change_notifier_android.h b/net/android/network_change_notifier_android.h
index 57d29b84669ca8ebd38256990a58c6087a17fe17..7710c26e15f409c40aa05135cd0da654186f500f 100644
--- a/net/android/network_change_notifier_android.h
+++ b/net/android/network_change_notifier_android.h
@@ -46,12 +46,19 @@ class NET_EXPORT_PRIVATE NetworkChangeNotifierAndroid
// NetworkChangeNotifier:
virtual ConnectionType GetCurrentConnectionType() const override;
+ // Requires ACCESS_WIFI_STATE permission in order to provide precise WiFi link
+ // speed.
+ virtual double GetCurrentMaxBandwidth() const override;
// NetworkChangeNotifierDelegateAndroid::Observer:
virtual void OnConnectionTypeChanged() override;
static bool Register(JNIEnv* env);
+ // Promote GetMaxBandwidthForConnectionSubtype to public for the Android
+ // delegate class.
+ using NetworkChangeNotifier::GetMaxBandwidthForConnectionSubtype;
+
private:
friend class NetworkChangeNotifierAndroidTest;
friend class NetworkChangeNotifierFactoryAndroid;

Powered by Google App Engine
This is Rietveld 408576698