OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
209 IPC_STRUCT_TRAITS_MEMBER(referrer) | 209 IPC_STRUCT_TRAITS_MEMBER(referrer) |
210 IPC_STRUCT_TRAITS_MEMBER(transition) | 210 IPC_STRUCT_TRAITS_MEMBER(transition) |
211 IPC_STRUCT_TRAITS_MEMBER(navigation_type) | 211 IPC_STRUCT_TRAITS_MEMBER(navigation_type) |
212 IPC_STRUCT_TRAITS_MEMBER(allow_download) | 212 IPC_STRUCT_TRAITS_MEMBER(allow_download) |
213 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) | 213 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) |
214 IPC_STRUCT_TRAITS_MEMBER(report_type) | 214 IPC_STRUCT_TRAITS_MEMBER(report_type) |
215 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) | 215 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) |
216 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) | 216 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) |
217 IPC_STRUCT_TRAITS_END() | 217 IPC_STRUCT_TRAITS_END() |
218 | 218 |
219 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) | 219 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) |
220 IPC_STRUCT_TRAITS_MEMBER(method) | 220 IPC_STRUCT_TRAITS_MEMBER(is_post) |
221 IPC_STRUCT_TRAITS_MEMBER(headers) | 221 IPC_STRUCT_TRAITS_MEMBER(extra_headers) |
222 IPC_STRUCT_TRAITS_MEMBER(load_flags) | 222 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) |
223 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 223 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) |
224 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) | |
225 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) | |
224 IPC_STRUCT_TRAITS_END() | 226 IPC_STRUCT_TRAITS_END() |
225 | 227 |
226 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) | 228 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) |
227 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 229 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
228 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 230 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
229 IPC_STRUCT_TRAITS_MEMBER(redirects) | 231 IPC_STRUCT_TRAITS_MEMBER(redirects) |
230 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) | 232 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) |
231 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) | 233 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) |
232 IPC_STRUCT_TRAITS_MEMBER(request_time) | 234 IPC_STRUCT_TRAITS_MEMBER(request_time) |
233 IPC_STRUCT_TRAITS_END() | |
234 | |
235 IPC_STRUCT_TRAITS_BEGIN(content::HistoryNavigationParams) | |
236 IPC_STRUCT_TRAITS_MEMBER(page_state) | 235 IPC_STRUCT_TRAITS_MEMBER(page_state) |
237 IPC_STRUCT_TRAITS_MEMBER(page_id) | 236 IPC_STRUCT_TRAITS_MEMBER(page_id) |
238 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 237 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
239 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 238 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
240 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 239 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
241 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 240 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
242 IPC_STRUCT_TRAITS_END() | 241 IPC_STRUCT_TRAITS_END() |
243 | 242 |
244 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) | 243 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) |
Charlie Reis
2015/03/19 20:45:51
If we re-order navigation_params.h as I mention, w
clamy
2015/03/20 10:42:43
Done.
| |
245 IPC_STRUCT_TRAITS_MEMBER(is_post) | 244 IPC_STRUCT_TRAITS_MEMBER(method) |
246 IPC_STRUCT_TRAITS_MEMBER(extra_headers) | 245 IPC_STRUCT_TRAITS_MEMBER(headers) |
247 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) | 246 IPC_STRUCT_TRAITS_MEMBER(load_flags) |
248 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) | 247 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
249 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) | |
250 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) | |
251 IPC_STRUCT_TRAITS_END() | 248 IPC_STRUCT_TRAITS_END() |
252 | 249 |
253 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 250 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
254 IPC_STRUCT_TRAITS_MEMBER(origin) | 251 IPC_STRUCT_TRAITS_MEMBER(origin) |
255 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 252 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
256 IPC_STRUCT_TRAITS_MEMBER(name) | 253 IPC_STRUCT_TRAITS_MEMBER(name) |
257 IPC_STRUCT_TRAITS_END() | 254 IPC_STRUCT_TRAITS_END() |
258 | 255 |
259 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) | 256 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) |
260 // Gives the routing ID for the RenderWidget that will be attached to the | 257 // Gives the routing ID for the RenderWidget that will be attached to the |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
356 // identified by |parent_routing_id| or as top level if that is | 353 // identified by |parent_routing_id| or as top level if that is |
357 // MSG_ROUTING_NONE. | 354 // MSG_ROUTING_NONE. |
358 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, | 355 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, |
359 int /* routing_id */, | 356 int /* routing_id */, |
360 int /* parent_routing_id */, | 357 int /* parent_routing_id */, |
361 int /* render_view_routing_id */, | 358 int /* render_view_routing_id */, |
362 content::FrameReplicationState /* replication_state */) | 359 content::FrameReplicationState /* replication_state */) |
363 | 360 |
364 // Tells the renderer to perform the specified navigation, interrupting any | 361 // Tells the renderer to perform the specified navigation, interrupting any |
365 // existing navigation. | 362 // existing navigation. |
366 IPC_MESSAGE_ROUTED4(FrameMsg_Navigate, | 363 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate, |
367 content::CommonNavigationParams, /* common_params */ | 364 content::CommonNavigationParams, /* common_params */ |
368 content::StartNavigationParams, /* start_params */ | 365 content::StartNavigationParams, /* start_params */ |
369 content::CommitNavigationParams, /* commit_params */ | 366 content::CommitNavigationParams /* commit_params */) |
370 content::HistoryNavigationParams /* history_params */) | |
371 | 367 |
372 // Instructs the renderer to invoke the frame's beforeunload event handler. | 368 // Instructs the renderer to invoke the frame's beforeunload event handler. |
373 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK. | 369 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK. |
374 IPC_MESSAGE_ROUTED0(FrameMsg_BeforeUnload) | 370 IPC_MESSAGE_ROUTED0(FrameMsg_BeforeUnload) |
375 | 371 |
376 // Instructs the frame to swap out for a cross-site transition, including | 372 // Instructs the frame to swap out for a cross-site transition, including |
377 // running the unload event handler and creating a RenderFrameProxy with the | 373 // running the unload event handler and creating a RenderFrameProxy with the |
378 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished. | 374 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished. |
379 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut, | 375 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut, |
380 int /* proxy_routing_id */, | 376 int /* proxy_routing_id */, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
495 // External popup menus. | 491 // External popup menus. |
496 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 492 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
497 int /* selected index, -1 means no selection */) | 493 int /* selected index, -1 means no selection */) |
498 | 494 |
499 #endif | 495 #endif |
500 | 496 |
501 // PlzNavigate | 497 // PlzNavigate |
502 // Tells the renderer that a navigation is ready to commit. The renderer should | 498 // Tells the renderer that a navigation is ready to commit. The renderer should |
503 // request |stream_url| to get access to the stream containing the body of the | 499 // request |stream_url| to get access to the stream containing the body of the |
504 // response. | 500 // response. |
505 IPC_MESSAGE_ROUTED5(FrameMsg_CommitNavigation, | 501 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
506 content::ResourceResponseHead, /* response */ | 502 content::ResourceResponseHead, /* response */ |
507 GURL, /* stream_url */ | 503 GURL, /* stream_url */ |
508 content::CommonNavigationParams, /* common_params */ | 504 content::CommonNavigationParams, /* common_params */ |
509 content::CommitNavigationParams, /* commit_params */ | 505 content::CommitNavigationParams /* commit_params */) |
510 content::HistoryNavigationParams /* history_params */) | |
511 | 506 |
512 #if defined(ENABLE_PLUGINS) | 507 #if defined(ENABLE_PLUGINS) |
513 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 508 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
514 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 509 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
515 std::set<GURL> /* origin_whitelist */) | 510 std::set<GURL> /* origin_whitelist */) |
516 #endif // defined(ENABLE_PLUGINS) | 511 #endif // defined(ENABLE_PLUGINS) |
517 | 512 |
518 // ----------------------------------------------------------------------------- | 513 // ----------------------------------------------------------------------------- |
519 // Messages sent from the renderer to the browser. | 514 // Messages sent from the renderer to the browser. |
520 | 515 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
838 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) | 833 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) |
839 | 834 |
840 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 835 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
841 | 836 |
842 // Message to show/hide a popup menu using native controls. | 837 // Message to show/hide a popup menu using native controls. |
843 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 838 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
844 FrameHostMsg_ShowPopup_Params) | 839 FrameHostMsg_ShowPopup_Params) |
845 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 840 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
846 | 841 |
847 #endif | 842 #endif |
OLD | NEW |