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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 656 IPC_MESSAGE_ROUTED1(FrameMsg_BeforeUnload, bool /* is_reload */) | 656 IPC_MESSAGE_ROUTED1(FrameMsg_BeforeUnload, bool /* is_reload */) |
| 657 | 657 |
| 658 // Instructs the frame to swap out for a cross-site transition, including | 658 // Instructs the frame to swap out for a cross-site transition, including |
| 659 // running the unload event handler and creating a RenderFrameProxy with the | 659 // running the unload event handler and creating a RenderFrameProxy with the |
| 660 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished. | 660 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished. |
| 661 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut, | 661 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut, |
| 662 int /* proxy_routing_id */, | 662 int /* proxy_routing_id */, |
| 663 bool /* is_loading */, | 663 bool /* is_loading */, |
| 664 content::FrameReplicationState /* replication_state */) | 664 content::FrameReplicationState /* replication_state */) |
| 665 | 665 |
| 666 // Requests that a provisional RenderFrame swaps itself into the frame tree, | |
|
Charlie Reis
2017/01/12 00:29:05
nit: s/swaps/swap/
alexmos
2017/01/12 01:38:12
Done.
| |
| 667 // replacing the RenderFrameProxy that it is associated with. This is used | |
| 668 // with remote-to-local frame navigations when the RenderFrameProxy corresponds | |
| 669 // to a non-live (crashed) frame. In that case, the browser process will send | |
| 670 // this message as part of an early commit to stop showing the sad iframe | |
| 671 // without waiting for the provisional RenderFrame's navigation to commit. | |
| 672 IPC_MESSAGE_ROUTED0(FrameMsg_SwapIn) | |
| 673 | |
| 666 // Instructs the frame to stop the load in progress, if any. | 674 // Instructs the frame to stop the load in progress, if any. |
| 667 IPC_MESSAGE_ROUTED0(FrameMsg_Stop) | 675 IPC_MESSAGE_ROUTED0(FrameMsg_Stop) |
| 668 | 676 |
| 669 // A message sent to RenderFrameProxy to indicate that its corresponding | 677 // A message sent to RenderFrameProxy to indicate that its corresponding |
| 670 // RenderFrame has started loading a document. | 678 // RenderFrame has started loading a document. |
| 671 IPC_MESSAGE_ROUTED0(FrameMsg_DidStartLoading) | 679 IPC_MESSAGE_ROUTED0(FrameMsg_DidStartLoading) |
| 672 | 680 |
| 673 // A message sent to RenderFrameProxy to indicate that its corresponding | 681 // A message sent to RenderFrameProxy to indicate that its corresponding |
| 674 // RenderFrame has completed loading. | 682 // RenderFrame has completed loading. |
| 675 IPC_MESSAGE_ROUTED0(FrameMsg_DidStopLoading) | 683 IPC_MESSAGE_ROUTED0(FrameMsg_DidStopLoading) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 713 // doing so. | 721 // doing so. |
| 714 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, | 722 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, |
| 715 bool /* bypass_cache */) | 723 bool /* bypass_cache */) |
| 716 | 724 |
| 717 // Notifies the color chooser client that the user selected a color. | 725 // Notifies the color chooser client that the user selected a color. |
| 718 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) | 726 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) |
| 719 | 727 |
| 720 // Notifies the color chooser client that the color chooser has ended. | 728 // Notifies the color chooser client that the color chooser has ended. |
| 721 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) | 729 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) |
| 722 | 730 |
| 723 // Notifies the corresponding RenderFrameProxy object to replace itself with the | 731 // Requests the corresponding RenderFrameProxy to be deleted and removed from |
| 724 // RenderFrame object it is associated with. | 732 // the frame tree. |
| 725 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) | 733 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) |
| 726 | 734 |
| 727 // Request the text surrounding the selection with a |max_length|. The response | 735 // Request the text surrounding the selection with a |max_length|. The response |
| 728 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. | 736 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
| 729 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, | 737 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
| 730 uint32_t /* max_length */) | 738 uint32_t /* max_length */) |
| 731 | 739 |
| 732 // Requests information about currently focused text input element from the | 740 // Requests information about currently focused text input element from the |
| 733 // renderer. | 741 // renderer. |
| 734 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int /* request_id */) | 742 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int /* request_id */) |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1539 // nearest find result in the sending frame. | 1547 // nearest find result in the sending frame. |
| 1540 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1548 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1541 int /* nfr_request_id */, | 1549 int /* nfr_request_id */, |
| 1542 float /* distance */) | 1550 float /* distance */) |
| 1543 #endif | 1551 #endif |
| 1544 | 1552 |
| 1545 // Adding a new message? Stick to the sort order above: first platform | 1553 // Adding a new message? Stick to the sort order above: first platform |
| 1546 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1554 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1547 // platform independent FrameHostMsg, then ifdefs for platform specific | 1555 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1548 // FrameHostMsg. | 1556 // FrameHostMsg. |
| OLD | NEW |