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

Side by Side Diff: content/common/frame_messages.h

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a class to keep track of navigation parameters Created 6 years, 3 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"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 IPC_STRUCT_MEMBER(int, load_flags) 289 IPC_STRUCT_MEMBER(int, load_flags)
290 290
291 // Optional resource request body (may be null). 291 // Optional resource request body (may be null).
292 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, 292 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
293 request_body) 293 request_body)
294 294
295 // True if the request was user initiated. 295 // True if the request was user initiated.
296 IPC_STRUCT_MEMBER(bool, has_user_gesture) 296 IPC_STRUCT_MEMBER(bool, has_user_gesture)
297 297
298 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) 298 IPC_STRUCT_MEMBER(content::PageTransition, transition_type)
299 IPC_STRUCT_END()
299 300
300 // Whether this navigation should replace the current session history entry on 301 IPC_STRUCT_BEGIN(FrameMsg_CommitNavigation_Params)
301 // commit. 302 // The URL to commit.
302 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 303 IPC_STRUCT_MEMBER(GURL, url)
(Do not use) nasko 2014/09/05 17:04:49 Yeah, this is the point I was trying to make. This
clamy 2014/09/05 18:21:25 So should this be split up in something like Frame
303 304
304 // Whether or not we should allow the URL to download. 305 // The URL to request to the browser to get access to the stream of data.
305 IPC_STRUCT_MEMBER(bool, allow_download) 306 IPC_STRUCT_MEMBER(GURL, stream_url)
307
308 // The page_id for this navigation, or -1 if it is a new navigation. Back,
309 // Forward, and Reload navigations should have a valid page_id. If the load
310 // succeeds, then this page_id will be reflected in the resultant
311 // FrameHostMsg_DidCommitProvisionalLoad message.
312 IPC_STRUCT_MEMBER(int32, page_id)
313
314 // If page_id is -1, then pending_history_list_offset will also be -1.
315 // Otherwise, it contains the offset into the history list corresponding to
316 // the current navigation.
317 IPC_STRUCT_MEMBER(int, pending_history_list_offset)
318
319 // Informs the RenderView of where its current page contents reside in
320 // session history and the total size of the session history list.
321 IPC_STRUCT_MEMBER(int, current_history_list_offset)
322 IPC_STRUCT_MEMBER(int, current_history_list_length)
323
324 // Informs the RenderView the session history should be cleared. In that
325 // case, the RenderView needs to notify the browser that the clearing was
326 // succesful when the navigation commits.
327 IPC_STRUCT_MEMBER(bool, should_clear_history_list)
328
329 // TODO(clamy): Investigate whether we should support data urls here.
330
331 // The URL to send in the "Referer" header field. Can be empty if there is
332 // no referrer.
333 IPC_STRUCT_MEMBER(content::Referrer, referrer)
334
335 // TODO(clamy): Investigate whether we should send the chain of redirects
336 // along.
337
338 // The type of transition.
339 IPC_STRUCT_MEMBER(content::PageTransition, transition)
340
341 // Opaque history state (received by ViewHostMsg_UpdateState).
342 IPC_STRUCT_MEMBER(content::PageState, page_state)
343
344 // Type of navigation.
345 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type)
346
347 // Whether or not the user agent override string should be used.
348 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
349
350 // The navigationStart time to expose through the Navigation Timing API to JS.
351 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start)
352
353 // TODO(clamy): Add other timing values needed by the Navigation Timing API
354 // (redirects, etc...).
306 IPC_STRUCT_END() 355 IPC_STRUCT_END()
307 356
308 #if defined(OS_MACOSX) || defined(OS_ANDROID) 357 #if defined(OS_MACOSX) || defined(OS_ANDROID)
309 // This message is used for supporting popup menus on Mac OS X and Android using 358 // This message is used for supporting popup menus on Mac OS X and Android using
310 // native controls. See the FrameHostMsg_ShowPopup message. 359 // native controls. See the FrameHostMsg_ShowPopup message.
311 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 360 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
312 // Position on the screen. 361 // Position on the screen.
313 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 362 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
314 363
315 // The height of each item in the menu. 364 // The height of each item in the menu.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 std::vector<int> /* selected indices */) 523 std::vector<int> /* selected indices */)
475 524
476 #elif defined(OS_MACOSX) 525 #elif defined(OS_MACOSX)
477 526
478 // External popup menus. 527 // External popup menus.
479 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, 528 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem,
480 int /* selected index, -1 means no selection */) 529 int /* selected index, -1 means no selection */)
481 530
482 #endif 531 #endif
483 532
533 // Tells the renderer to commit the specific navigation, as part of the
534 // browser-side navigation refactoring.
535 IPC_MESSAGE_ROUTED1(FrameMsg_CommitNavigation, FrameMsg_CommitNavigation_Params)
536
484 // ----------------------------------------------------------------------------- 537 // -----------------------------------------------------------------------------
485 // Messages sent from the renderer to the browser. 538 // Messages sent from the renderer to the browser.
486 539
487 // Blink and JavaScript error messages to log to the console 540 // Blink and JavaScript error messages to log to the console
488 // or debugger UI. 541 // or debugger UI.
489 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 542 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
490 int32, /* log level */ 543 int32, /* log level */
491 base::string16, /* msg */ 544 base::string16, /* msg */
492 int32, /* line number */ 545 int32, /* line number */
493 base::string16 /* source id */ ) 546 base::string16 /* source id */ )
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 815 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
763 816
764 #if defined(OS_MACOSX) || defined(OS_ANDROID) 817 #if defined(OS_MACOSX) || defined(OS_ANDROID)
765 818
766 // Message to show/hide a popup menu using native controls. 819 // Message to show/hide a popup menu using native controls.
767 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 820 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
768 FrameHostMsg_ShowPopup_Params) 821 FrameHostMsg_ShowPopup_Params)
769 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 822 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
770 823
771 #endif 824 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698