OLD | NEW |
---|---|
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 "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 import "ui/gfx/mojo/icc_profile.mojom"; | 10 import "ui/gfx/mojo/icc_profile.mojom"; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 // MSG_ROUTING_NONE. | 150 // MSG_ROUTING_NONE. |
151 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id, | 151 CreateFrameProxy(int32 routing_id, int32 render_view_routing_id, |
152 int32 opener_routing_id, int32 parent_routing_id, | 152 int32 opener_routing_id, int32 parent_routing_id, |
153 FrameReplicationState replication_state); | 153 FrameReplicationState replication_state); |
154 | 154 |
155 // Tells the renderer that the network type has changed so that | 155 // Tells the renderer that the network type has changed so that |
156 // navigator.onLine and navigator.connection can be updated. | 156 // navigator.onLine and navigator.connection can be updated. |
157 OnNetworkConnectionChanged(NetworkConnectionType connection_type, | 157 OnNetworkConnectionChanged(NetworkConnectionType connection_type, |
158 double max_bandwidth_mbps); | 158 double max_bandwidth_mbps); |
159 | 159 |
160 // Tells the renderer that the network quality has changed. |http_rtt|, | |
nasko
2017/05/08 18:27:45
nit: s/renderer/renderer process/
tbansal1
2017/05/08 19:50:19
Done.
| |
161 // |transport_rtt| and |downstream_throughput_kbps| are the computed estimates | |
162 // of the HTTP RTT, transport RTT and downstream throughput (in kilobits per | |
nasko
2017/05/08 18:27:45
nit: You can omit the actual names, as the variabl
tbansal1
2017/05/08 19:50:19
Done.
| |
163 // second), respectively. If an estimate of the HTTP or transport RTT is | |
164 // unavailable, it will be set to net::nqe::internal::InvalidRTT(). If the | |
RyanSturm
2017/05/08 17:37:20
nit: Instead of/In addition to net::nqe::internal:
nasko
2017/05/08 18:27:45
I'd rather not use magic values without defining i
tbansal1
2017/05/08 19:50:19
is it possible to IPC/mojoify base::Optional?
tbansal1
2017/05/08 19:50:19
I do not think I want to hardcode the number here.
| |
165 // throughput estimate is unavailable, it will be set to | |
166 // net::nqe::internal::kInvalidThroughput. | |
167 OnNetworkQualityChanged(double http_rtt_msec, double transport_rtt_msec, doubl e bandwidth_kbps); | |
168 | |
160 // Tells the renderer to suspend/resume the webkit timers. Only for use on | 169 // Tells the renderer to suspend/resume the webkit timers. Only for use on |
161 // Android. | 170 // Android. |
162 SetWebKitSharedTimersSuspended(bool suspend); | 171 SetWebKitSharedTimersSuspended(bool suspend); |
163 | 172 |
164 // Tells the renderer about a scrollbar appearance change. Only for use on | 173 // Tells the renderer about a scrollbar appearance change. Only for use on |
165 // OS X. | 174 // OS X. |
166 UpdateScrollbarTheme(UpdateScrollbarThemeParams params); | 175 UpdateScrollbarTheme(UpdateScrollbarThemeParams params); |
167 | 176 |
168 // Notification that the OS X Aqua color preferences changed. | 177 // Notification that the OS X Aqua color preferences changed. |
169 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color, | 178 OnSystemColorsChanged(int32 aqua_color_variant, string highlight_text_color, |
170 string highlight_color); | 179 string highlight_color); |
171 | 180 |
172 // Tells the renderer to empty its plugin list cache, optional reloading | 181 // Tells the renderer to empty its plugin list cache, optional reloading |
173 // pages containing plugins. | 182 // pages containing plugins. |
174 PurgePluginListCache(bool reload_pages); | 183 PurgePluginListCache(bool reload_pages); |
175 }; | 184 }; |
OLD | NEW |