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

Side by Side Diff: content/common/frame_messages.h

Issue 1018383002: Make NavigationParams clearer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + addressed comment Created 5 years, 9 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 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::BeginNavigationParams)
220 IPC_STRUCT_TRAITS_MEMBER(method) 220 IPC_STRUCT_TRAITS_MEMBER(method)
221 IPC_STRUCT_TRAITS_MEMBER(headers) 221 IPC_STRUCT_TRAITS_MEMBER(headers)
222 IPC_STRUCT_TRAITS_MEMBER(load_flags) 222 IPC_STRUCT_TRAITS_MEMBER(load_flags)
223 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 223 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
224 IPC_STRUCT_TRAITS_END() 224 IPC_STRUCT_TRAITS_END()
225 225
226 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) 226 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
227 IPC_STRUCT_TRAITS_MEMBER(is_post)
228 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
229 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
230 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
231 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
232 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
233 IPC_STRUCT_TRAITS_END()
234
235 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams)
227 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) 236 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent)
228 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) 237 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start)
229 IPC_STRUCT_TRAITS_MEMBER(redirects) 238 IPC_STRUCT_TRAITS_MEMBER(redirects)
230 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) 239 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources)
231 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) 240 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate)
232 IPC_STRUCT_TRAITS_MEMBER(request_time) 241 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) 242 IPC_STRUCT_TRAITS_MEMBER(page_state)
237 IPC_STRUCT_TRAITS_MEMBER(page_id) 243 IPC_STRUCT_TRAITS_MEMBER(page_id)
238 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) 244 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset)
239 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) 245 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset)
240 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) 246 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length)
241 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) 247 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
242 IPC_STRUCT_TRAITS_END() 248 IPC_STRUCT_TRAITS_END()
243 249
244 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
245 IPC_STRUCT_TRAITS_MEMBER(is_post)
246 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
247 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
248 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
249 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
250 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
251 IPC_STRUCT_TRAITS_END()
252
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
261 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this 258 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
262 // is MSG_ROUTING_NONE and the other parameters are not read. 259 // is MSG_ROUTING_NONE and the other parameters are not read.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::RequestNavigationParams /* request_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
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::RequestNavigationParams /* request_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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/common/navigation_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698