Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 364 IPC_STRUCT_TRAITS_MEMBER(headers) | 364 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 365 IPC_STRUCT_TRAITS_MEMBER(load_flags) | 365 IPC_STRUCT_TRAITS_MEMBER(load_flags) |
| 366 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 366 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
| 367 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) | 367 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) |
| 368 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 368 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
| 369 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) | 369 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) |
| 370 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 370 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
| 371 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 371 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
| 372 IPC_STRUCT_TRAITS_MEMBER(initiator_origin) | 372 IPC_STRUCT_TRAITS_MEMBER(initiator_origin) |
| 373 IPC_STRUCT_TRAITS_MEMBER(client_side_redirect_url) | 373 IPC_STRUCT_TRAITS_MEMBER(client_side_redirect_url) |
| 374 IPC_STRUCT_TRAITS_MEMBER(renderer_navigation_id) | |
| 374 IPC_STRUCT_TRAITS_END() | 375 IPC_STRUCT_TRAITS_END() |
| 375 | 376 |
| 376 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) | 377 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) |
| 377 IPC_STRUCT_TRAITS_MEMBER(extra_headers) | 378 IPC_STRUCT_TRAITS_MEMBER(extra_headers) |
| 378 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) | 379 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) |
| 379 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) | 380 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) |
| 380 IPC_STRUCT_TRAITS_END() | 381 IPC_STRUCT_TRAITS_END() |
| 381 | 382 |
| 382 IPC_STRUCT_TRAITS_BEGIN(content::NavigationTiming) | 383 IPC_STRUCT_TRAITS_BEGIN(content::NavigationTiming) |
| 383 IPC_STRUCT_TRAITS_MEMBER(redirect_start) | 384 IPC_STRUCT_TRAITS_MEMBER(redirect_start) |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 898 // Tells the renderer that a navigation is ready to commit. The renderer should | 899 // Tells the renderer that a navigation is ready to commit. The renderer should |
| 899 // request |stream_url| to get access to the stream containing the body of the | 900 // request |stream_url| to get access to the stream containing the body of the |
| 900 // response. | 901 // response. |
| 901 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, | 902 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
| 902 content::ResourceResponseHead, /* response */ | 903 content::ResourceResponseHead, /* response */ |
| 903 GURL, /* stream_url */ | 904 GURL, /* stream_url */ |
| 904 content::CommonNavigationParams, /* common_params */ | 905 content::CommonNavigationParams, /* common_params */ |
| 905 content::RequestNavigationParams /* request_params */) | 906 content::RequestNavigationParams /* request_params */) |
| 906 | 907 |
| 907 // PlzNavigate | 908 // PlzNavigate |
| 909 // Informs the renderer that the browser stopped processing a renderer-initiated | |
| 910 // navigation. | |
| 911 IPC_MESSAGE_ROUTED1(FrameMsg_DroppedNavigation, | |
|
Charlie Reis
2017/03/20 06:34:44
We seem to be a bit inconsistent with calling this
| |
| 912 int /* renderer_navigation_id */) | |
| 913 | |
| 914 // PlzNavigate | |
| 908 // Tells the renderer that a navigation failed with the error code |error_code| | 915 // Tells the renderer that a navigation failed with the error code |error_code| |
| 909 // and that the renderer should display an appropriate error page. | 916 // and that the renderer should display an appropriate error page. |
| 910 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 917 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
| 911 content::CommonNavigationParams, /* common_params */ | 918 content::CommonNavigationParams, /* common_params */ |
| 912 content::RequestNavigationParams, /* request_params */ | 919 content::RequestNavigationParams, /* request_params */ |
| 913 bool, /* stale_copy_in_cache */ | 920 bool, /* stale_copy_in_cache */ |
| 914 int /* error_code */) | 921 int /* error_code */) |
| 915 | 922 |
| 916 // PlzNavigate | 923 // PlzNavigate |
| 917 // Tells the renderer that a navigation was blocked because a content security | 924 // Tells the renderer that a navigation was blocked because a content security |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1498 std::string /* http method */, | 1505 std::string /* http method */, |
| 1499 std::string /* mime type */, | 1506 std::string /* mime type */, |
| 1500 content::ResourceType /* resource type */) | 1507 content::ResourceType /* resource type */) |
| 1501 | 1508 |
| 1502 // PlzNavigate | 1509 // PlzNavigate |
| 1503 // Tells the browser to perform a navigation. | 1510 // Tells the browser to perform a navigation. |
| 1504 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, | 1511 IPC_MESSAGE_ROUTED2(FrameHostMsg_BeginNavigation, |
| 1505 content::CommonNavigationParams, | 1512 content::CommonNavigationParams, |
| 1506 content::BeginNavigationParams) | 1513 content::BeginNavigationParams) |
| 1507 | 1514 |
| 1515 // PlzNavigate | |
| 1516 // Tells the browser to abort an ongoing renderer-initiated navigation. This is | |
| 1517 // used when the page calls document.open. | |
| 1518 IPC_MESSAGE_ROUTED0(FrameHostMsg_AbortNavigation) | |
| 1519 | |
| 1508 // Sent as a response to FrameMsg_VisualStateRequest. | 1520 // Sent as a response to FrameMsg_VisualStateRequest. |
| 1509 // The message is delivered using RenderWidget::QueueMessage. | 1521 // The message is delivered using RenderWidget::QueueMessage. |
| 1510 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) | 1522 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64_t /* id */) |
| 1511 | 1523 |
| 1512 // Reply to the ExtractSmartClipData message. | 1524 // Reply to the ExtractSmartClipData message. |
| 1513 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted, | 1525 IPC_MESSAGE_ROUTED3(FrameHostMsg_SmartClipDataExtracted, |
| 1514 uint32_t /* id */, | 1526 uint32_t /* id */, |
| 1515 base::string16 /* text */, | 1527 base::string16 /* text */, |
| 1516 base::string16 /* html */) | 1528 base::string16 /* html */) |
| 1517 | 1529 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1639 int /* nfr_request_id */, | 1651 int /* nfr_request_id */, |
| 1640 float /* distance */) | 1652 float /* distance */) |
| 1641 | 1653 |
| 1642 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1654 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
| 1643 #endif | 1655 #endif |
| 1644 | 1656 |
| 1645 // Adding a new message? Stick to the sort order above: first platform | 1657 // Adding a new message? Stick to the sort order above: first platform |
| 1646 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1658 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1647 // platform independent FrameHostMsg, then ifdefs for platform specific | 1659 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1648 // FrameHostMsg. | 1660 // FrameHostMsg. |
| OLD | NEW |