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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
11 #include "content/common/frame_param.h" 11 #include "content/common/frame_param.h"
12 #include "content/common/navigation_gesture.h" 12 #include "content/common/navigation_gesture.h"
13 #include "content/common/resource_request_body.h"
13 #include "content/public/common/color_suggestion.h" 14 #include "content/public/common/color_suggestion.h"
14 #include "content/public/common/common_param_traits.h" 15 #include "content/public/common/common_param_traits.h"
15 #include "content/public/common/context_menu_params.h" 16 #include "content/public/common/context_menu_params.h"
16 #include "content/public/common/frame_navigate_params.h" 17 #include "content/public/common/frame_navigate_params.h"
17 #include "content/public/common/javascript_message_type.h" 18 #include "content/public/common/javascript_message_type.h"
18 #include "content/public/common/page_state.h" 19 #include "content/public/common/page_state.h"
19 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
20 #include "ui/gfx/ipc/gfx_param_traits.h" 21 #include "ui/gfx/ipc/gfx_param_traits.h"
21 #include "url/gurl.h" 22 #include "url/gurl.h"
22 23
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 IPC_STRUCT_END() 247 IPC_STRUCT_END()
247 248
248 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 249 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
249 IPC_STRUCT_MEMBER(GURL, url) 250 IPC_STRUCT_MEMBER(GURL, url)
250 IPC_STRUCT_MEMBER(content::Referrer, referrer) 251 IPC_STRUCT_MEMBER(content::Referrer, referrer)
251 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 252 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
252 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 253 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
253 IPC_STRUCT_MEMBER(bool, user_gesture) 254 IPC_STRUCT_MEMBER(bool, user_gesture)
254 IPC_STRUCT_END() 255 IPC_STRUCT_END()
255 256
257 // 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.
258 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params)
259 // The request method: GET, POST, etc.
260 IPC_STRUCT_MEMBER(std::string, method)
261
262 // The requested URL.
263 IPC_STRUCT_MEMBER(GURL, url)
264
265 // The referrer to use (may be empty).
266 IPC_STRUCT_MEMBER(GURL, referrer)
267
268 // The referrer policy to use.
269 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy)
270
271 // Additional HTTP request headers.
272 IPC_STRUCT_MEMBER(std::string, headers)
273
274 // net::URLRequest load flags (net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING
275 // by default).
276 IPC_STRUCT_MEMBER(int, load_flags)
277
278 // Optional resource request body (may be null).
279 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
280 request_body)
281
282 // True if the request was user initiated.
283 IPC_STRUCT_MEMBER(bool, has_user_gesture)
284
285 IPC_STRUCT_MEMBER(content::PageTransition, transition_type)
286
287 // Whether this navigation should replace the current session history entry on
288 // commit.
289 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
290
291 // Whether or not we should allow the URL to download.
292 IPC_STRUCT_MEMBER(bool, allow_download)
293 IPC_STRUCT_END()
294
256 // ----------------------------------------------------------------------------- 295 // -----------------------------------------------------------------------------
257 // Messages sent from the browser to the renderer. 296 // Messages sent from the browser to the renderer.
258 297
259 // When HW accelerated buffers are swapped in an out-of-process child frame 298 // When HW accelerated buffers are swapped in an out-of-process child frame
260 // renderer, the message is forwarded to the embedding frame to notify it of 299 // renderer, the message is forwarded to the embedding frame to notify it of
261 // a new texture available for compositing. When the buffer has finished 300 // a new texture available for compositing. When the buffer has finished
262 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to 301 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to
263 // gpu host that produced this buffer. 302 // gpu host that produced this buffer.
264 // 303 //
265 // This is used in the non-ubercomp HW accelerated compositing path. 304 // This is used in the non-ubercomp HW accelerated compositing path.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 // |endOffset| are the offsets of the selection in the returned |content|. 647 // |endOffset| are the offsets of the selection in the returned |content|.
609 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 648 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
610 base::string16, /* content */ 649 base::string16, /* content */
611 size_t, /* startOffset */ 650 size_t, /* startOffset */
612 size_t /* endOffset */) 651 size_t /* endOffset */)
613 652
614 // Notifies the browser that the renderer has a pending navigation transition. 653 // Notifies the browser that the renderer has a pending navigation transition.
615 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, 654 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest,
616 int /* render_frame_id */, 655 int /* render_frame_id */,
617 bool /* is_transition */) 656 bool /* is_transition */)
657
658 // Tells the browser to perform a navigation.
659 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation,
660 FrameHostMsg_BeginNavigation_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698