Index: content/common/frame_messages.h |
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h |
index d22c70433769600ce17cc992fc158cb76d3070e9..32f32afc9fa6919ab5fe74f864db9b538189d658 100644 |
--- a/content/common/frame_messages.h |
+++ b/content/common/frame_messages.h |
@@ -220,6 +220,13 @@ IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) |
IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) |
+ IPC_STRUCT_TRAITS_MEMBER(method) |
+ IPC_STRUCT_TRAITS_MEMBER(headers) |
+ IPC_STRUCT_TRAITS_MEMBER(load_flags) |
+ IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) |
IPC_STRUCT_TRAITS_MEMBER(page_state) |
IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
@@ -319,28 +326,6 @@ IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
IPC_STRUCT_MEMBER(bool, user_gesture) |
IPC_STRUCT_END() |
-// PlzNavigate |
-IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) |
- // TODO(clamy): See if it is possible to define a common struct between this |
- // IPC and ResourceMsg_Request_Params. |
- |
- // The request method: GET, POST, etc. |
- IPC_STRUCT_MEMBER(std::string, method) |
- |
- // Additional HTTP request headers. |
- IPC_STRUCT_MEMBER(std::string, headers) |
- |
- // net::URLRequest load flags (net::LOAD_NORMAL) by default). |
- IPC_STRUCT_MEMBER(int, load_flags) |
- |
- // Optional resource request body (may be null). |
- IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, |
- request_body) |
- |
- // True if the request was user initiated. |
- IPC_STRUCT_MEMBER(bool, has_user_gesture) |
-IPC_STRUCT_END() |
- |
#if defined(OS_MACOSX) || defined(OS_ANDROID) |
// This message is used for supporting popup menus on Mac OS X and Android using |
// native controls. See the FrameHostMsg_ShowPopup message. |
@@ -545,12 +530,6 @@ IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
#endif |
// PlzNavigate |
-// Tells the renderer that a navigation has been requested. |
-IPC_MESSAGE_ROUTED2(FrameMsg_RequestNavigation, |
- content::CommonNavigationParams, /* common_params */ |
- content::RequestNavigationParams /* request_params */) |
- |
-// PlzNavigate |
// Tells the renderer that a navigation is ready to commit. The renderer should |
// request |stream_url| to get access to the stream containing the body of the |
// response. |
@@ -844,9 +823,10 @@ IPC_MESSAGE_CONTROL1(FrameHostMsg_AddNavigationTransitionData, |
// PlzNavigate |
// Tells the browser to perform a navigation. |
-IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, |
- FrameHostMsg_BeginNavigation_Params, |
- content::CommonNavigationParams) |
+IPC_MESSAGE_ROUTED3(FrameHostMsg_BeginNavigation, |
+ content::CommonNavigationParams, |
+ content::BeginNavigationParams, |
+ scoped_refptr<content::ResourceRequestBody>) |
// Sent once a paint happens after the first non empty layout. In other words |
// after the frame has painted something. |