Index: content/common/view_messages.h |
diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
index f492761d844c903f0eecd9ed105631bd66cf022c..a164305d093984c917129226274c18b2a5d98d7e 100644 |
--- a/content/common/view_messages.h |
+++ b/content/common/view_messages.h |
@@ -45,6 +45,7 @@ |
#include "ui/gfx/rect.h" |
#include "ui/gfx/rect_f.h" |
#include "ui/gfx/vector2d.h" |
+#include "webkit/glue/resource_request_body.h" |
#include "webkit/glue/webcookie.h" |
#include "webkit/glue/webmenuitem.h" |
#include "webkit/glue/webpreferences.h" |
@@ -736,13 +737,25 @@ IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
// If is_post is true, holds the post_data information from browser. Empty |
// otherwise. |
- IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) |
+ IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
+ browser_initiated_post_data) |
// Whether or not this url should be allowed to access local file:// |
// resources. |
IPC_STRUCT_MEMBER(bool, can_load_local_resources) |
IPC_STRUCT_END() |
+// Parameters for a resource request. |
+IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
+ IPC_STRUCT_MEMBER(GURL, url) |
+ IPC_STRUCT_MEMBER(content::Referrer, referrer) |
+ IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
+ IPC_STRUCT_MEMBER(int64, frame_id) |
+ IPC_STRUCT_MEMBER(std::string, extra_header) |
+ IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
+ request_body) |
+IPC_STRUCT_END() |
+ |
IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
// The parent window's id. |
IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
@@ -1897,11 +1910,8 @@ IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, |
string16 /* out - user_input field */) |
// Requests that the given URL be opened in the specified manner. |
-IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, |
- GURL /* url */, |
- content::Referrer /* referrer */, |
- WindowOpenDisposition /* disposition */, |
- int64 /* frame id */) |
+IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenURL, |
+ ViewHostMsg_OpenURL_Params) |
// Notifies that the preferred size of the content changed. |
IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |