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

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

Issue 1890493002: PlzNavigate: properly execute BeforeUnload on renderer initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fixed issue with layout test Created 4 years, 6 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/web_contents/web_contents_impl.cc ('k') | content/renderer/render_frame_impl.h » ('j') | 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 649
650 // Tells the renderer to perform the specified navigation, interrupting any 650 // Tells the renderer to perform the specified navigation, interrupting any
651 // existing navigation. 651 // existing navigation.
652 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate, 652 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate,
653 content::CommonNavigationParams, /* common_params */ 653 content::CommonNavigationParams, /* common_params */
654 content::StartNavigationParams, /* start_params */ 654 content::StartNavigationParams, /* start_params */
655 content::RequestNavigationParams /* request_params */) 655 content::RequestNavigationParams /* request_params */)
656 656
657 // Instructs the renderer to invoke the frame's beforeunload event handler. 657 // Instructs the renderer to invoke the frame's beforeunload event handler.
658 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK. 658 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK.
659 IPC_MESSAGE_ROUTED0(FrameMsg_BeforeUnload) 659 IPC_MESSAGE_ROUTED1(FrameMsg_BeforeUnload, bool /* is_reload */)
660 660
661 // Instructs the frame to swap out for a cross-site transition, including 661 // Instructs the frame to swap out for a cross-site transition, including
662 // running the unload event handler and creating a RenderFrameProxy with the 662 // running the unload event handler and creating a RenderFrameProxy with the
663 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished. 663 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished.
664 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut, 664 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut,
665 int /* proxy_routing_id */, 665 int /* proxy_routing_id */,
666 bool /* is_loading */, 666 bool /* is_loading */,
667 content::FrameReplicationState /* replication_state */) 667 content::FrameReplicationState /* replication_state */)
668 668
669 // Instructs the frame to stop the load in progress, if any. 669 // Instructs the frame to stop the load in progress, if any.
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1478 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1479 int /* version */, 1479 int /* version */,
1480 std::vector<gfx::RectF> /* rects */, 1480 std::vector<gfx::RectF> /* rects */,
1481 gfx::RectF /* active_rect */) 1481 gfx::RectF /* active_rect */)
1482 #endif 1482 #endif
1483 1483
1484 // Adding a new message? Stick to the sort order above: first platform 1484 // Adding a new message? Stick to the sort order above: first platform
1485 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1485 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1486 // platform independent FrameHostMsg, then ifdefs for platform specific 1486 // platform independent FrameHostMsg, then ifdefs for platform specific
1487 // FrameHostMsg. 1487 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698