Chromium Code Reviews| Index: content/common/frame_messages.h |
| diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h |
| index 1b83f26eabab76e1695a9dc870a8f7a2f260aae0..421a3359af05c2e9fb807f53fb0b46001c5aa1ed 100644 |
| --- a/content/common/frame_messages.h |
| +++ b/content/common/frame_messages.h |
| @@ -10,6 +10,7 @@ |
| #include "content/common/frame_message_enums.h" |
| #include "content/common/frame_param.h" |
| #include "content/common/navigation_gesture.h" |
| +#include "content/common/resource_request_body.h" |
| #include "content/public/common/color_suggestion.h" |
| #include "content/public/common/common_param_traits.h" |
| #include "content/public/common/context_menu_params.h" |
| @@ -253,6 +254,44 @@ IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
| IPC_STRUCT_MEMBER(bool, user_gesture) |
| IPC_STRUCT_END() |
| +// Parameters for a navigation request, |
|
ppi
2014/07/10 16:03:34
nit: "," -> "."
jam
2014/07/15 00:05:43
nit: this comment is necessary
clamy
2014/07/15 15:32:14
I removed it entirely.
|
| +IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) |
| + // The request method: GET, POST, etc. |
| + IPC_STRUCT_MEMBER(std::string, method) |
| + |
| + // The requested URL. |
| + IPC_STRUCT_MEMBER(GURL, url) |
| + |
| + // The referrer to use (may be empty). |
| + IPC_STRUCT_MEMBER(GURL, referrer) |
| + |
| + // The referrer policy to use. |
| + IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy) |
| + |
| + // Additional HTTP request headers. |
| + IPC_STRUCT_MEMBER(std::string, headers) |
| + |
| + // net::URLRequest load flags (net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING |
| + // 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_MEMBER(content::PageTransition, transition_type) |
| + |
| + // Whether this navigation should replace the current session history entry on |
| + // commit. |
| + IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
| + |
| + // Whether or not we should allow the URL to download. |
| + IPC_STRUCT_MEMBER(bool, allow_download) |
| +IPC_STRUCT_END() |
| + |
| // ----------------------------------------------------------------------------- |
| // Messages sent from the browser to the renderer. |
| @@ -615,3 +654,7 @@ IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, |
| int /* render_frame_id */, |
| bool /* is_transition */) |
| + |
| +// Tells the browser to perform a navigation. |
| +IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, |
| + FrameHostMsg_BeginNavigation_Params) |