Chromium Code Reviews| Index: content/common/view_messages.h |
| diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
| index 1692d63b45abeb85a638eb10cb1354a5417f5b24..3dec25fa5de80a0a6fa13eed9ded1284c7933680 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" |
| @@ -668,6 +669,21 @@ IPC_STRUCT_BEGIN(ViewMsg_SwapOut_Params) |
| IPC_STRUCT_MEMBER(int, new_request_id) |
| IPC_STRUCT_END() |
| +// Parameters for a resource request. |
| +IPC_STRUCT_TRAITS_BEGIN(content::ViewMsg_Request) |
| + // The request method: GET, POST, etc. |
| + IPC_STRUCT_TRAITS_MEMBER(method) |
| + |
| + // The requested URL. |
| + IPC_STRUCT_TRAITS_MEMBER(url) |
| + |
| + // Additional HTTP request headers. |
| + IPC_STRUCT_TRAITS_MEMBER(headers) |
| + |
| + // Optional resource request body (may be null). |
| + IPC_STRUCT_TRAITS_MEMBER(request_body) |
| +IPC_STRUCT_TRAITS_END() |
| + |
| IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
| // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| // Forward, and Reload navigations should have a valid page_id. If the load |
| @@ -738,6 +754,8 @@ IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
| // Whether or not this url should be allowed to access local file:// |
| // resources. |
| IPC_STRUCT_MEMBER(bool, can_load_local_resources) |
| + |
| + IPC_STRUCT_MEMBER(content::ViewMsg_Request, request) |
| IPC_STRUCT_END() |
| IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| @@ -1892,6 +1910,14 @@ IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, |
| WindowOpenDisposition /* disposition */, |
| int64 /* frame id */) |
| +// Requests that the given URL be opened in the specified manner. |
| +IPC_MESSAGE_ROUTED5(ViewHostMsg_OpenPostURL, |
| + GURL /* url */, |
| + content::Referrer /* referrer */, |
| + WindowOpenDisposition /* disposition */, |
| + int64 /* frame id */, |
| + content::ViewMsg_Request /* Request */) |
|
michaeln
2012/11/02 00:08:23
the request param also contains a url data member,
irobert
2012/11/02 17:22:55
Done.
|
| + |
| // Notifies that the preferred size of the content changed. |
| IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
| gfx::Size /* pref_size */) |