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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 // PlzNavigate | 498 // PlzNavigate |
499 // Tells the renderer that a navigation is ready to commit. The renderer should | 499 // Tells the renderer that a navigation is ready to commit. The renderer should |
500 // request |stream_url| to get access to the stream containing the body of the | 500 // request |stream_url| to get access to the stream containing the body of the |
501 // response. | 501 // response. |
502 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, | 502 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
503 content::ResourceResponseHead, /* response */ | 503 content::ResourceResponseHead, /* response */ |
504 GURL, /* stream_url */ | 504 GURL, /* stream_url */ |
505 content::CommonNavigationParams, /* common_params */ | 505 content::CommonNavigationParams, /* common_params */ |
506 content::RequestNavigationParams /* request_params */) | 506 content::RequestNavigationParams /* request_params */) |
507 | 507 |
| 508 // PlzNavigate |
| 509 // Tells the renderer that a navigation failed with the error code |error_code| |
| 510 // and that the renderer should display an appropriate error page. |
| 511 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
| 512 content::CommonNavigationParams, /* common_params */ |
| 513 content::RequestNavigationParams, /* request_params */ |
| 514 bool, /* stale_copy_in_cache */ |
| 515 int /* error_code */) |
| 516 |
508 #if defined(ENABLE_PLUGINS) | 517 #if defined(ENABLE_PLUGINS) |
509 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 518 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
510 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 519 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
511 std::set<GURL> /* origin_whitelist */) | 520 std::set<GURL> /* origin_whitelist */) |
512 #endif // defined(ENABLE_PLUGINS) | 521 #endif // defined(ENABLE_PLUGINS) |
513 | 522 |
514 // ----------------------------------------------------------------------------- | 523 // ----------------------------------------------------------------------------- |
515 // Messages sent from the renderer to the browser. | 524 // Messages sent from the renderer to the browser. |
516 | 525 |
517 // Blink and JavaScript error messages to log to the console | 526 // Blink and JavaScript error messages to log to the console |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) | 835 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) |
827 | 836 |
828 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 837 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
829 | 838 |
830 // Message to show/hide a popup menu using native controls. | 839 // Message to show/hide a popup menu using native controls. |
831 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 840 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
832 FrameHostMsg_ShowPopup_Params) | 841 FrameHostMsg_ShowPopup_Params) |
833 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 842 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
834 | 843 |
835 #endif | 844 #endif |
OLD | NEW |