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

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: Removed appcache_host_id, service_worker_provider_id and download_to_file parameters 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
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 // What this navigation request is for (main frame, sub-frame).
279 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type)
davidben 2014/07/02 21:05:12 Probably can remove this one since the browser wil
clamy 2014/07/03 09:41:53 Done. We may have to put it back in place if we ha
280
281 // Optional resource request body (may be null).
282 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
283 request_body)
284
285 // True if the request was user initiated.
286 IPC_STRUCT_MEMBER(bool, has_user_gesture)
287
288 IPC_STRUCT_MEMBER(content::PageTransition, transition_type)
289
290 // For navigations, whether this navigation should replace the current session
291 // history entry on commit.
292 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
293
294 // Whether or not we should allow the URL to download.
295 IPC_STRUCT_MEMBER(bool, allow_download)
296 IPC_STRUCT_END()
297
256 // ----------------------------------------------------------------------------- 298 // -----------------------------------------------------------------------------
257 // Messages sent from the browser to the renderer. 299 // Messages sent from the browser to the renderer.
258 300
259 // When HW accelerated buffers are swapped in an out-of-process child frame 301 // 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 302 // 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 303 // a new texture available for compositing. When the buffer has finished
262 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to 304 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to
263 // gpu host that produced this buffer. 305 // gpu host that produced this buffer.
264 // 306 //
265 // This is used in the non-ubercomp HW accelerated compositing path. 307 // This is used in the non-ubercomp HW accelerated compositing path.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 // |endOffset| are the offsets of the selection in the returned |content|. 651 // |endOffset| are the offsets of the selection in the returned |content|.
610 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 652 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
611 base::string16, /* content */ 653 base::string16, /* content */
612 size_t, /* startOffset */ 654 size_t, /* startOffset */
613 size_t /* endOffset */) 655 size_t /* endOffset */)
614 656
615 // Notifies the browser that the renderer has a pending navigation transition. 657 // Notifies the browser that the renderer has a pending navigation transition.
616 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, 658 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest,
617 int /* render_frame_id */, 659 int /* render_frame_id */,
618 bool /* is_transition */) 660 bool /* is_transition */)
661
662 // Tells the browser to perform a navigation.
663 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation,
664 FrameHostMsg_BeginNavigation_Params)
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698