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

Side by Side Diff: content/common/renderer.mojom

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 unified diff | Download patch
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module content.mojom; 5 module content.mojom;
6 6
7 import "content/common/native_types.mojom"; 7 import "content/common/native_types.mojom";
8 import "ipc/ipc.mojom"; 8 import "ipc/ipc.mojom";
9 import "mojo/common/time.mojom";
9 import "ui/gfx/geometry/mojo/geometry.mojom"; 10 import "ui/gfx/geometry/mojo/geometry.mojom";
10 import "ui/gfx/mojo/icc_profile.mojom"; 11 import "ui/gfx/mojo/icc_profile.mojom";
11 12
12 struct CreateViewParams { 13 struct CreateViewParams {
13 // Renderer-wide preferences. 14 // Renderer-wide preferences.
14 RendererPreferences renderer_preferences; 15 RendererPreferences renderer_preferences;
15 16
16 // Preferences for this view. 17 // Preferences for this view.
17 WebPreferences web_preferences; 18 WebPreferences web_preferences;
18 19
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id, 152 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id,
152 int32 opener_routing_id, int32 parent_routing_id, 153 int32 opener_routing_id, int32 parent_routing_id,
153 FrameReplicationState replication_state); 154 FrameReplicationState replication_state);
154 155
155 // Tells the renderer that the network type has changed so that 156 // Tells the renderer that the network type has changed so that
156 // navigator.onLine and navigator.connection can be updated. 157 // navigator.onLine and navigator.connection can be updated.
157 OnNetworkConnectionChanged(NetworkConnectionType connection_type, 158 OnNetworkConnectionChanged(NetworkConnectionType connection_type,
158 double max_bandwidth_mbps); 159 double max_bandwidth_mbps);
159 160
160 // Tells the renderer process that the network quality estimate has changed. 161 // Tells the renderer process that the network quality estimate has changed.
161 // The RTT estimates are in milliseconds, while the downstream throughput is 162 // The downstream throughput is computed in kilobits per second. If an
162 // computed in kilobits per second. If an estimate of the HTTP or transport 163 // estimate of the HTTP or transport RTT is unavailable, it will be set to
163 // RTT is unavailable, it will be set to net::nqe::internal::InvalidRTT(). If 164 // net::nqe::internal::InvalidRTT(). If the throughput estimate is
164 // the throughput estimate is unavailable, it will be set to 165 // unavailable, it will be set to net::nqe::internal::kInvalidThroughput.
165 // net::nqe::internal::kInvalidThroughput. 166 OnNetworkQualityChanged(mojo.common.mojom.TimeDelta http_rtt,
166 OnNetworkQualityChanged(double http_rtt_msec, double transport_rtt_msec, doubl e bandwidth_kbps); 167 mojo.common.mojom.TimeDelta transport_rtt,
168 double bandwidth_kbps);
167 169
168 // Tells the renderer to suspend/resume the webkit timers. Only for use on 170 // Tells the renderer to suspend/resume the webkit timers. Only for use on
169 // Android. 171 // Android.
170 SetWebKitSharedTimersSuspended(bool suspend); 172 SetWebKitSharedTimersSuspended(bool suspend);
171 173
172 // Tells the renderer about a scrollbar appearance change. Only for use on 174 // Tells the renderer about a scrollbar appearance change. Only for use on
173 // OS X. 175 // OS X.
174 UpdateScrollbarTheme(UpdateScrollbarThemeParams params); 176 UpdateScrollbarTheme(UpdateScrollbarThemeParams params);
175 177
176 // Notification that the OS X Aqua color preferences changed. 178 // Notification that the OS X Aqua color preferences changed.
177 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color, 179 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color,
178 string highlight_color); 180 string highlight_color);
179 181
180 // Tells the renderer to empty its plugin list cache, optional reloading 182 // Tells the renderer to empty its plugin list cache, optional reloading
181 // pages containing plugins. 183 // pages containing plugins.
182 PurgePluginListCache(bool reload_pages); 184 PurgePluginListCache(bool reload_pages);
183 }; 185 };
OLDNEW
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698