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

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

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Created 3 years, 9 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 // Tells the renderer that a navigation is ready to commit. The renderer should 880 // Tells the renderer that a navigation is ready to commit. The renderer should
881 // request |stream_url| to get access to the stream containing the body of the 881 // request |stream_url| to get access to the stream containing the body of the
882 // response. 882 // response.
883 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, 883 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
884 content::ResourceResponseHead, /* response */ 884 content::ResourceResponseHead, /* response */
885 GURL, /* stream_url */ 885 GURL, /* stream_url */
886 content::CommonNavigationParams, /* common_params */ 886 content::CommonNavigationParams, /* common_params */
887 content::RequestNavigationParams /* request_params */) 887 content::RequestNavigationParams /* request_params */)
888 888
889 // PlzNavigate 889 // PlzNavigate
890 // Informs the renderer that the browser stopped processing a renderer-initiated
891 // navigation.
892 IPC_MESSAGE_ROUTED0(FrameMsg_DroppedNavigation)
Nate Chapin 2017/03/07 18:39:08 Are there any race conditions that could lead to d
nasko 2017/03/09 05:19:28 Would it help if we add the URL of the navigation
clamy 2017/03/13 13:55:57 We could still have race condition though if we tr
893
894 // PlzNavigate
890 // Tells the renderer that a navigation failed with the error code |error_code| 895 // Tells the renderer that a navigation failed with the error code |error_code|
891 // and that the renderer should display an appropriate error page. 896 // and that the renderer should display an appropriate error page.
892 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, 897 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation,
893 content::CommonNavigationParams, /* common_params */ 898 content::CommonNavigationParams, /* common_params */
894 content::RequestNavigationParams, /* request_params */ 899 content::RequestNavigationParams, /* request_params */
895 bool, /* stale_copy_in_cache */ 900 bool, /* stale_copy_in_cache */
896 int /* error_code */) 901 int /* error_code */)
897 902
898 // Request to enumerate and return links to all savable resources in the frame 903 // Request to enumerate and return links to all savable resources in the frame
899 // Note: this covers only the immediate frame / doesn't cover subframes. 904 // Note: this covers only the immediate frame / doesn't cover subframes.
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 std::string /* http method */, 1479 std::string /* http method */,
1475 std::string /* mime type */, 1480 std::string /* mime type */,
1476 content::ResourceType /* resource type */) 1481 content::ResourceType /* resource type */)
1477 1482
1478 // PlzNavigate 1483 // PlzNavigate
1479 // Tells the browser to perform a navigation. 1484 // Tells the browser to perform a navigation.
1480 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, 1485 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation,
1481 content::CommonNavigationParams, 1486 content::CommonNavigationParams,
1482 content::BeginNavigationParams) 1487 content::BeginNavigationParams)
1483 1488
1489 // PlzNavigate
1490 // Tells the browser to abort an ongoing renderer-initiated navigation. This is
1491 // used when the page calls document.open.
1492 IPC_MESSAGE_ROUTED0(FrameHostMsg_AbortNavigation)
1493
1484 // Sent as a response to FrameMsg_VisualStateRequest. 1494 // Sent as a response to FrameMsg_VisualStateRequest.
1485 // The message is delivered using RenderWidget::QueueMessage. 1495 // The message is delivered using RenderWidget::QueueMessage.
1486 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) 1496 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */)
1487 1497
1488 // Reply to the ExtractSmartClipData message. 1498 // Reply to the ExtractSmartClipData message.
1489 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted, 1499 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted,
1490 uint32_t /* id */, 1500 uint32_t /* id */,
1491 base::string16 /* text */, 1501 base::string16 /* text */,
1492 base::string16 /* html */) 1502 base::string16 /* html */)
1493 1503
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 // nearest find result in the sending frame. 1623 // nearest find result in the sending frame.
1614 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1624 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1615 int /* nfr_request_id */, 1625 int /* nfr_request_id */,
1616 float /* distance */) 1626 float /* distance */)
1617 #endif 1627 #endif
1618 1628
1619 // Adding a new message? Stick to the sort order above: first platform 1629 // Adding a new message? Stick to the sort order above: first platform
1620 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1630 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1621 // platform independent FrameHostMsg, then ifdefs for platform specific 1631 // platform independent FrameHostMsg, then ifdefs for platform specific
1622 // FrameHostMsg. 1632 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698