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

Unified Diff: third_party/WebKit/public/platform/WebNetworkStateNotifier.h

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: kinuko comments Created 3 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: third_party/WebKit/public/platform/WebNetworkStateNotifier.h
diff --git a/third_party/WebKit/public/platform/WebNetworkStateNotifier.h b/third_party/WebKit/public/platform/WebNetworkStateNotifier.h
index 396ddd5d128bc80dee573c4d2850ae737f020e79..1727ee4f89e4e6b0686d220b609dbc64da10c7df 100644
--- a/third_party/WebKit/public/platform/WebNetworkStateNotifier.h
+++ b/third_party/WebKit/public/platform/WebNetworkStateNotifier.h
@@ -31,6 +31,7 @@
#ifndef WebNetworkStateNotifier_h
#define WebNetworkStateNotifier_h
+#include "platform/wtf/Time.h"
dcheng 2017/05/17 12:27:46 I'm not sure we can use platform/wtf/Time.h in a p
tbansal1 2017/05/18 00:10:30 This should have been from the //base. Fixed.
#include "public/platform/WebCommon.h"
#include "public/platform/WebConnectionType.h"
@@ -41,6 +42,10 @@ class WebNetworkStateNotifier {
BLINK_PLATFORM_EXPORT static void SetOnLine(bool);
BLINK_PLATFORM_EXPORT static void SetWebConnection(WebConnectionType,
double max_bandwidth_mbps);
+ BLINK_PLATFORM_EXPORT static void SetNetworkQuality(
+ TimeDelta http_rtt,
+ TimeDelta transport_rtt,
+ int downlink_throughput_kbps);
private:
WebNetworkStateNotifier();

Powered by Google App Engine
This is Rietveld 408576698