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

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

Issue 2883763002: Expose ECT to render frames, Blink and NetInfo (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
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 "mojo/common/time.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 10 import "ui/gfx/geometry/mojo/geometry.mojom";
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id, 152 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id,
153 int32 opener_routing_id, int32 parent_routing_id, 153 int32 opener_routing_id, int32 parent_routing_id,
154 FrameReplicationState replication_state); 154 FrameReplicationState replication_state);
155 155
156 // Tells the renderer that the network type has changed so that 156 // Tells the renderer that the network type has changed so that
157 // navigator.onLine and navigator.connection can be updated. 157 // navigator.onLine and navigator.connection can be updated.
158 OnNetworkConnectionChanged(NetworkConnectionType connection_type, 158 OnNetworkConnectionChanged(NetworkConnectionType connection_type,
159 double max_bandwidth_mbps); 159 double max_bandwidth_mbps);
160 160
161 // Tells the renderer process that the network quality estimate has changed. 161 // Tells the renderer process that the network quality estimate has changed.
162 // EffectiveConnectionType is the connection type whose typical performance is
163 // most similar to the measured performance of the network in use.
162 // The downstream throughput is computed in kilobits per second. If an 164 // The downstream throughput is computed in kilobits per second. If an
163 // estimate of the HTTP or transport RTT is unavailable, it will be set to 165 // estimate of the HTTP or transport RTT is unavailable, it will be set to
164 // net::nqe::internal::InvalidRTT(). If the throughput estimate is 166 // net::nqe::internal::InvalidRTT(). If the throughput estimate is
165 // unavailable, it will be set to net::nqe::internal::kInvalidThroughput. 167 // unavailable, it will be set to net::nqe::internal::kInvalidThroughput.
166 OnNetworkQualityChanged(mojo.common.mojom.TimeDelta http_rtt, 168 OnNetworkQualityChanged(EffectiveConnectionType effective_connection_type,
169 mojo.common.mojom.TimeDelta http_rtt,
167 mojo.common.mojom.TimeDelta transport_rtt, 170 mojo.common.mojom.TimeDelta transport_rtt,
168 double bandwidth_kbps); 171 double bandwidth_kbps);
169 172
170 // Tells the renderer to suspend/resume the webkit timers. Only for use on 173 // Tells the renderer to suspend/resume the webkit timers. Only for use on
171 // Android. 174 // Android.
172 SetWebKitSharedTimersSuspended(bool suspend); 175 SetWebKitSharedTimersSuspended(bool suspend);
173 176
174 // Tells the renderer about a scrollbar appearance change. Only for use on 177 // Tells the renderer about a scrollbar appearance change. Only for use on
175 // OS X. 178 // OS X.
176 UpdateScrollbarTheme(UpdateScrollbarThemeParams params); 179 UpdateScrollbarTheme(UpdateScrollbarThemeParams params);
177 180
178 // Notification that the OS X Aqua color preferences changed. 181 // Notification that the OS X Aqua color preferences changed.
179 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color, 182 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color,
180 string highlight_color); 183 string highlight_color);
181 184
182 // Tells the renderer to empty its plugin list cache, optional reloading 185 // Tells the renderer to empty its plugin list cache, optional reloading
183 // pages containing plugins. 186 // pages containing plugins.
184 PurgePluginListCache(bool reload_pages); 187 PurgePluginListCache(bool reload_pages);
185 }; 188 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698