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 "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
9 #include "cc/surfaces/surface_sequence.h" | 9 #include "cc/surfaces/surface_sequence.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 | 645 |
646 // PlzNavigate | 646 // PlzNavigate |
647 // Tells the renderer that a navigation failed with the error code |error_code| | 647 // Tells the renderer that a navigation failed with the error code |error_code| |
648 // and that the renderer should display an appropriate error page. | 648 // and that the renderer should display an appropriate error page. |
649 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 649 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
650 content::CommonNavigationParams, /* common_params */ | 650 content::CommonNavigationParams, /* common_params */ |
651 content::RequestNavigationParams, /* request_params */ | 651 content::RequestNavigationParams, /* request_params */ |
652 bool, /* stale_copy_in_cache */ | 652 bool, /* stale_copy_in_cache */ |
653 int /* error_code */) | 653 int /* error_code */) |
654 | 654 |
| 655 // Request to enumerate and return links to all savable resources in the frame |
| 656 // Note: this covers only the immediate frame / doesn't cover subframes. |
| 657 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) |
| 658 |
655 #if defined(ENABLE_PLUGINS) | 659 #if defined(ENABLE_PLUGINS) |
656 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 660 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
657 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 661 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
658 std::set<GURL> /* origin_whitelist */) | 662 std::set<GURL> /* origin_whitelist */) |
659 #endif // defined(ENABLE_PLUGINS) | 663 #endif // defined(ENABLE_PLUGINS) |
660 | 664 |
661 // ----------------------------------------------------------------------------- | 665 // ----------------------------------------------------------------------------- |
662 // Messages sent from the renderer to the browser. | 666 // Messages sent from the renderer to the browser. |
663 | 667 |
664 // Blink and JavaScript error messages to log to the console | 668 // Blink and JavaScript error messages to log to the console |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 FrameMsg_PostMessage_Params) | 1059 FrameMsg_PostMessage_Params) |
1056 | 1060 |
1057 // Sent when the renderer displays insecure content in a secure origin. | 1061 // Sent when the renderer displays insecure content in a secure origin. |
1058 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) | 1062 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) |
1059 | 1063 |
1060 // Sent when the renderer runs insecure content in a secure origin. | 1064 // Sent when the renderer runs insecure content in a secure origin. |
1061 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, | 1065 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, |
1062 std::string /* security_origin */, | 1066 std::string /* security_origin */, |
1063 GURL /* target URL */) | 1067 GURL /* target URL */) |
1064 | 1068 |
| 1069 // Response to FrameMsg_GetSavableResourceLinks. |
| 1070 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse, |
| 1071 GURL /* frame URL */, |
| 1072 std::vector<GURL> /* savable resource links */, |
| 1073 std::vector<content::Referrer> /* referrers */) |
| 1074 |
| 1075 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains |
| 1076 // non-savable content (i.e. from a non-savable scheme) or if there were |
| 1077 // errors gathering the links. |
| 1078 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) |
| 1079 |
1065 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1080 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1066 | 1081 |
1067 // Message to show/hide a popup menu using native controls. | 1082 // Message to show/hide a popup menu using native controls. |
1068 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1083 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1069 FrameHostMsg_ShowPopup_Params) | 1084 FrameHostMsg_ShowPopup_Params) |
1070 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1085 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1071 | 1086 |
1072 #endif | 1087 #endif |
OLD | NEW |