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

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

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: Rebased 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
« no previous file with comments | « third_party/WebKit/public/platform/DEPS ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a91b024ac867db2ff6334664a556da6c263a1af9 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 "base/time/time.h"
#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(
+ base::TimeDelta http_rtt,
+ base::TimeDelta transport_rtt,
+ int downlink_throughput_kbps);
private:
WebNetworkStateNotifier();
« no previous file with comments | « third_party/WebKit/public/platform/DEPS ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698