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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
902 bool /* user canceled the popup */, | 902 bool /* user canceled the popup */, |
903 std::vector<int> /* selected indices */) | 903 std::vector<int> /* selected indices */) |
904 #endif | 904 #endif |
905 #endif | 905 #endif |
906 | 906 |
907 // PlzNavigate | 907 // PlzNavigate |
908 // Tells the renderer that a navigation is ready to commit. The renderer should | 908 // Tells the renderer that a navigation is ready to commit. The renderer should |
909 // request |stream_url| to get access to the stream containing the body of the | 909 // request |stream_url| to get access to the stream containing the body of the |
910 // response. | 910 // response. |
911 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, | 911 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
912 content::ResourceResponseHead, /* response */ | 912 content::ResourceResponseHead, /* response */ |
913 GURL, /* stream_url */ | 913 GURL, /* stream_url */ |
914 content::CommonNavigationParams, /* common_params */ | 914 content::CommonNavigationParams, /* common_params */ |
915 content::RequestNavigationParams /* request_params */) | 915 content::RequestNavigationParams /* request_params */) |
916 | |
917 // Same as FrameMsg_CommitNavigation, but used when --enable-network-service. | |
jam
2017/04/12 18:13:45
why not just one IPC with both parameters?
scottmg
2017/04/12 18:42:41
Sure, that's probably better to match the rest.
scottmg
2017/04/12 20:37:11
Done.
| |
918 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigationNetworkService, | |
919 content::ResourceResponseHead, /* response */ | |
920 mojo::DataPipeConsumerHandle, /* handle */ | |
921 content::CommonNavigationParams, /* common_params */ | |
922 content::RequestNavigationParams /* request_params */) | |
916 | 923 |
917 // PlzNavigate | 924 // PlzNavigate |
918 // Tells the renderer that a navigation failed with the error code |error_code| | 925 // Tells the renderer that a navigation failed with the error code |error_code| |
919 // and that the renderer should display an appropriate error page. | 926 // and that the renderer should display an appropriate error page. |
920 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 927 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
921 content::CommonNavigationParams, /* common_params */ | 928 content::CommonNavigationParams, /* common_params */ |
922 content::RequestNavigationParams, /* request_params */ | 929 content::RequestNavigationParams, /* request_params */ |
923 bool, /* stale_copy_in_cache */ | 930 bool, /* stale_copy_in_cache */ |
924 int /* error_code */) | 931 int /* error_code */) |
925 | 932 |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1647 int /* nfr_request_id */, | 1654 int /* nfr_request_id */, |
1648 float /* distance */) | 1655 float /* distance */) |
1649 | 1656 |
1650 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1657 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
1651 #endif | 1658 #endif |
1652 | 1659 |
1653 // Adding a new message? Stick to the sort order above: first platform | 1660 // Adding a new message? Stick to the sort order above: first platform |
1654 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1661 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1655 // platform independent FrameHostMsg, then ifdefs for platform specific | 1662 // platform independent FrameHostMsg, then ifdefs for platform specific |
1656 // FrameHostMsg. | 1663 // FrameHostMsg. |
OLD | NEW |