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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkStateNotifier.h

Issue 2903493002: NetInfo network quality extension: Add callbacks and Layout tests (Closed)
Patch Set: haraken 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/Source/platform/network/NetworkStateNotifier.h
diff --git a/third_party/WebKit/Source/platform/network/NetworkStateNotifier.h b/third_party/WebKit/Source/platform/network/NetworkStateNotifier.h
index 18e56e22f64c284876e6a500f07b5fbd107bc631..9969c26ce8a6755dffff05bcfeed55b8c4785abb 100644
--- a/third_party/WebKit/Source/platform/network/NetworkStateNotifier.h
+++ b/third_party/WebKit/Source/platform/network/NetworkStateNotifier.h
@@ -172,7 +172,12 @@ class PLATFORM_EXPORT NetworkStateNotifier {
//
// Since this class is a singleton, tests must clear override when completed
// to avoid indeterminate state across the test harness.
- void SetOverride(bool on_line, WebConnectionType, double max_bandwidth_mbps);
+ void SetNetworkConnectionInfoOverride(bool on_line,
+ WebConnectionType,
+ double max_bandwidth_mbps);
+ void SetNetworkQualityInfoOverride(WebEffectiveConnectionType effective_type,
+ unsigned long transport_rtt_msec,
+ double downlink_throughput_mbps);
void ClearOverride();
// Must be called on the given task runner. An added observer must be removed

Powered by Google App Engine
This is Rietveld 408576698