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

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

Issue 1999943002: Moving HTTP POST body from StartNavigationParams to CommonNavigationParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from clamy@. Created 4 years, 6 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 IPC_STRUCT_TRAITS_MEMBER(navigation_type) 333 IPC_STRUCT_TRAITS_MEMBER(navigation_type)
334 IPC_STRUCT_TRAITS_MEMBER(allow_download) 334 IPC_STRUCT_TRAITS_MEMBER(allow_download)
335 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) 335 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
336 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) 336 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp)
337 IPC_STRUCT_TRAITS_MEMBER(report_type) 337 IPC_STRUCT_TRAITS_MEMBER(report_type)
338 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) 338 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url)
339 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) 339 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url)
340 IPC_STRUCT_TRAITS_MEMBER(lofi_state) 340 IPC_STRUCT_TRAITS_MEMBER(lofi_state)
341 IPC_STRUCT_TRAITS_MEMBER(navigation_start) 341 IPC_STRUCT_TRAITS_MEMBER(navigation_start)
342 IPC_STRUCT_TRAITS_MEMBER(method) 342 IPC_STRUCT_TRAITS_MEMBER(method)
343 IPC_STRUCT_TRAITS_MEMBER(post_data)
343 IPC_STRUCT_TRAITS_END() 344 IPC_STRUCT_TRAITS_END()
344 345
345 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) 346 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams)
346 IPC_STRUCT_TRAITS_MEMBER(headers) 347 IPC_STRUCT_TRAITS_MEMBER(headers)
347 IPC_STRUCT_TRAITS_MEMBER(load_flags) 348 IPC_STRUCT_TRAITS_MEMBER(load_flags)
348 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 349 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
349 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) 350 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker)
350 IPC_STRUCT_TRAITS_MEMBER(request_context_type) 351 IPC_STRUCT_TRAITS_MEMBER(request_context_type)
351 IPC_STRUCT_TRAITS_END() 352 IPC_STRUCT_TRAITS_END()
352 353
353 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) 354 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
354 IPC_STRUCT_TRAITS_MEMBER(extra_headers) 355 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
355 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
356 #if defined(OS_ANDROID) 356 #if defined(OS_ANDROID)
357 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 357 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
358 #endif 358 #endif
359 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) 359 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
360 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) 360 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
361 IPC_STRUCT_TRAITS_END() 361 IPC_STRUCT_TRAITS_END()
362 362
363 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) 363 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams)
364 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) 364 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent)
365 IPC_STRUCT_TRAITS_MEMBER(redirects) 365 IPC_STRUCT_TRAITS_MEMBER(redirects)
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 // External popup menus. 837 // External popup menus.
838 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, 838 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem,
839 int /* selected index, -1 means no selection */) 839 int /* selected index, -1 means no selection */)
840 840
841 #endif 841 #endif
842 842
843 // PlzNavigate 843 // PlzNavigate
844 // Tells the renderer that a navigation is ready to commit. The renderer should 844 // Tells the renderer that a navigation is ready to commit. The renderer should
845 // request |stream_url| to get access to the stream containing the body of the 845 // request |stream_url| to get access to the stream containing the body of the
846 // response. 846 // response.
847 IPC_MESSAGE_ROUTED5(FrameMsg_CommitNavigation, 847 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
848 content::ResourceResponseHead, /* response */ 848 content::ResourceResponseHead, /* response */
849 GURL, /* stream_url */ 849 GURL, /* stream_url */
850 content::CommonNavigationParams, /* common_params */ 850 content::CommonNavigationParams, /* common_params */
851 content::RequestNavigationParams, /* request_params */ 851 content::RequestNavigationParams) /* request_params */
852 scoped_refptr<content::ResourceRequestBody> /* post_data */)
853 852
854 // PlzNavigate 853 // PlzNavigate
855 // Tells the renderer that a navigation failed with the error code |error_code| 854 // Tells the renderer that a navigation failed with the error code |error_code|
856 // and that the renderer should display an appropriate error page. 855 // and that the renderer should display an appropriate error page.
857 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, 856 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation,
858 content::CommonNavigationParams, /* common_params */ 857 content::CommonNavigationParams, /* common_params */
859 content::RequestNavigationParams, /* request_params */ 858 content::RequestNavigationParams, /* request_params */
860 bool, /* stale_copy_in_cache */ 859 bool, /* stale_copy_in_cache */
861 int /* error_code */) 860 int /* error_code */)
862 861
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 // Note: May only be sent once per URL per frame per committed load. 1343 // Note: May only be sent once per URL per frame per committed load.
1345 IPC_MESSAGE_ROUTED5(FrameHostMsg_DidLoadResourceFromMemoryCache, 1344 IPC_MESSAGE_ROUTED5(FrameHostMsg_DidLoadResourceFromMemoryCache,
1346 GURL /* url */, 1345 GURL /* url */,
1347 std::string /* security info */, 1346 std::string /* security info */,
1348 std::string /* http method */, 1347 std::string /* http method */,
1349 std::string /* mime type */, 1348 std::string /* mime type */,
1350 content::ResourceType /* resource type */) 1349 content::ResourceType /* resource type */)
1351 1350
1352 // PlzNavigate 1351 // PlzNavigate
1353 // Tells the browser to perform a navigation. 1352 // Tells the browser to perform a navigation.
1354 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeginNavigation, 1353 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation,
1355 content::CommonNavigationParams, 1354 content::CommonNavigationParams,
1356 content::BeginNavigationParams, 1355 content::BeginNavigationParams)
1357 scoped_refptr<content::ResourceRequestBody>)
1358 1356
1359 // Sent as a response to FrameMsg_VisualStateRequest. 1357 // Sent as a response to FrameMsg_VisualStateRequest.
1360 // The message is delivered using RenderWidget::QueueMessage. 1358 // The message is delivered using RenderWidget::QueueMessage.
1361 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) 1359 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */)
1362 1360
1363 // Puts the browser into "tab fullscreen" mode for the sending renderer. 1361 // Puts the browser into "tab fullscreen" mode for the sending renderer.
1364 // See the comment in chrome/browser/ui/browser.h for more details. 1362 // See the comment in chrome/browser/ui/browser.h for more details.
1365 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) 1363 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */)
1366 1364
1367 // Dispatch a load event for this frame in the iframe element of an 1365 // Dispatch a load event for this frame in the iframe element of an
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1471 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1474 int /* version */, 1472 int /* version */,
1475 std::vector<gfx::RectF> /* rects */, 1473 std::vector<gfx::RectF> /* rects */,
1476 gfx::RectF /* active_rect */) 1474 gfx::RectF /* active_rect */)
1477 #endif 1475 #endif
1478 1476
1479 // Adding a new message? Stick to the sort order above: first platform 1477 // Adding a new message? Stick to the sort order above: first platform
1480 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1478 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1481 // platform independent FrameHostMsg, then ifdefs for platform specific 1479 // platform independent FrameHostMsg, then ifdefs for platform specific
1482 // FrameHostMsg. 1480 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/common/navigation_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698