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

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

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Rebase 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 IPC_STRUCT_TRAITS_MEMBER(headers) 353 IPC_STRUCT_TRAITS_MEMBER(headers)
354 IPC_STRUCT_TRAITS_MEMBER(load_flags) 354 IPC_STRUCT_TRAITS_MEMBER(load_flags)
355 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 355 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
356 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) 356 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker)
357 IPC_STRUCT_TRAITS_MEMBER(request_context_type) 357 IPC_STRUCT_TRAITS_MEMBER(request_context_type)
358 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) 358 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type)
359 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) 359 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
360 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) 360 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
361 IPC_STRUCT_TRAITS_MEMBER(initiator_origin) 361 IPC_STRUCT_TRAITS_MEMBER(initiator_origin)
362 IPC_STRUCT_TRAITS_MEMBER(client_side_redirect_url) 362 IPC_STRUCT_TRAITS_MEMBER(client_side_redirect_url)
363 IPC_STRUCT_TRAITS_MEMBER(renderer_navigation_id)
363 IPC_STRUCT_TRAITS_END() 364 IPC_STRUCT_TRAITS_END()
364 365
365 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) 366 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
366 IPC_STRUCT_TRAITS_MEMBER(extra_headers) 367 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
367 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) 368 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
368 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) 369 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
369 IPC_STRUCT_TRAITS_END() 370 IPC_STRUCT_TRAITS_END()
370 371
371 IPC_STRUCT_TRAITS_BEGIN(content::NavigationTiming) 372 IPC_STRUCT_TRAITS_BEGIN(content::NavigationTiming)
372 IPC_STRUCT_TRAITS_MEMBER(redirect_start) 373 IPC_STRUCT_TRAITS_MEMBER(redirect_start)
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 // Tells the renderer that a navigation is ready to commit. The renderer should 877 // Tells the renderer that a navigation is ready to commit. The renderer should
877 // request |stream_url| to get access to the stream containing the body of the 878 // request |stream_url| to get access to the stream containing the body of the
878 // response. 879 // response.
879 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, 880 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
880 content::ResourceResponseHead, /* response */ 881 content::ResourceResponseHead, /* response */
881 GURL, /* stream_url */ 882 GURL, /* stream_url */
882 content::CommonNavigationParams, /* common_params */ 883 content::CommonNavigationParams, /* common_params */
883 content::RequestNavigationParams /* request_params */) 884 content::RequestNavigationParams /* request_params */)
884 885
885 // PlzNavigate 886 // PlzNavigate
887 // Informs the renderer that the browser stopped processing a renderer-initiated
888 // navigation.
889 IPC_MESSAGE_ROUTED1(FrameMsg_DroppedNavigation,
890 int /* renderer_navigation_id */)
891
892 // PlzNavigate
886 // Tells the renderer that a navigation failed with the error code |error_code| 893 // Tells the renderer that a navigation failed with the error code |error_code|
887 // and that the renderer should display an appropriate error page. 894 // and that the renderer should display an appropriate error page.
888 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, 895 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation,
889 content::CommonNavigationParams, /* common_params */ 896 content::CommonNavigationParams, /* common_params */
890 content::RequestNavigationParams, /* request_params */ 897 content::RequestNavigationParams, /* request_params */
891 bool, /* stale_copy_in_cache */ 898 bool, /* stale_copy_in_cache */
892 int /* error_code */) 899 int /* error_code */)
893 900
894 // Request to enumerate and return links to all savable resources in the frame 901 // Request to enumerate and return links to all savable resources in the frame
895 // Note: this covers only the immediate frame / doesn't cover subframes. 902 // Note: this covers only the immediate frame / doesn't cover subframes.
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 std::string /* http method */, 1477 std::string /* http method */,
1471 std::string /* mime type */, 1478 std::string /* mime type */,
1472 content::ResourceType /* resource type */) 1479 content::ResourceType /* resource type */)
1473 1480
1474 // PlzNavigate 1481 // PlzNavigate
1475 // Tells the browser to perform a navigation. 1482 // Tells the browser to perform a navigation.
1476 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, 1483 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation,
1477 content::CommonNavigationParams, 1484 content::CommonNavigationParams,
1478 content::BeginNavigationParams) 1485 content::BeginNavigationParams)
1479 1486
1487 // PlzNavigate
1488 // Tells the browser to abort an ongoing renderer-initiated navigation. This is
1489 // used when the page calls document.open.
1490 IPC_MESSAGE_ROUTED0(FrameHostMsg_AbortNavigation)
1491
1480 // Sent as a response to FrameMsg_VisualStateRequest. 1492 // Sent as a response to FrameMsg_VisualStateRequest.
1481 // The message is delivered using RenderWidget::QueueMessage. 1493 // The message is delivered using RenderWidget::QueueMessage.
1482 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) 1494 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */)
1483 1495
1484 // Reply to the ExtractSmartClipData message. 1496 // Reply to the ExtractSmartClipData message.
1485 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted, 1497 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted,
1486 uint32_t /* id */, 1498 uint32_t /* id */,
1487 base::string16 /* text */, 1499 base::string16 /* text */,
1488 base::string16 /* html */) 1500 base::string16 /* html */)
1489 1501
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 int /* nfr_request_id */, 1623 int /* nfr_request_id */,
1612 float /* distance */) 1624 float /* distance */)
1613 1625
1614 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) 1626 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder)
1615 #endif 1627 #endif
1616 1628
1617 // 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
1618 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1630 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1619 // platform independent FrameHostMsg, then ifdefs for platform specific 1631 // platform independent FrameHostMsg, then ifdefs for platform specific
1620 // FrameHostMsg. 1632 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698