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

Unified Diff: content/common/frame_messages.h

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Przemek's comments + fixed compilation error Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698