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 30 matching lines...) Expand all Loading... |
41 #include "content/public/common/page_importance_signals.h" | 41 #include "content/public/common/page_importance_signals.h" |
42 #include "content/public/common/page_state.h" | 42 #include "content/public/common/page_state.h" |
43 #include "content/public/common/previews_state.h" | 43 #include "content/public/common/previews_state.h" |
44 #include "content/public/common/referrer.h" | 44 #include "content/public/common/referrer.h" |
45 #include "content/public/common/request_context_type.h" | 45 #include "content/public/common/request_context_type.h" |
46 #include "content/public/common/resource_response.h" | 46 #include "content/public/common/resource_response.h" |
47 #include "content/public/common/stop_find_action.h" | 47 #include "content/public/common/stop_find_action.h" |
48 #include "content/public/common/three_d_api_types.h" | 48 #include "content/public/common/three_d_api_types.h" |
49 #include "ipc/ipc_message_macros.h" | 49 #include "ipc/ipc_message_macros.h" |
50 #include "ipc/ipc_platform_file.h" | 50 #include "ipc/ipc_platform_file.h" |
| 51 #include "mojo/public/cpp/system/message_pipe.h" |
51 #include "ppapi/features/features.h" | 52 #include "ppapi/features/features.h" |
52 #include "third_party/WebKit/public/platform/WebFeaturePolicy.h" | 53 #include "third_party/WebKit/public/platform/WebFeaturePolicy.h" |
53 #include "third_party/WebKit/public/platform/WebFocusType.h" | 54 #include "third_party/WebKit/public/platform/WebFocusType.h" |
54 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 55 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
55 #include "third_party/WebKit/public/web/WebFindOptions.h" | 56 #include "third_party/WebKit/public/web/WebFindOptions.h" |
56 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 57 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
57 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" | 58 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" |
58 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 59 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
59 #include "ui/gfx/geometry/rect.h" | 60 #include "ui/gfx/geometry/rect.h" |
60 #include "ui/gfx/geometry/rect_f.h" | 61 #include "ui/gfx/geometry/rect_f.h" |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 | 620 |
620 IPC_STRUCT_BEGIN(FrameMsg_MixedContentFound_Params) | 621 IPC_STRUCT_BEGIN(FrameMsg_MixedContentFound_Params) |
621 IPC_STRUCT_MEMBER(GURL, main_resource_url) | 622 IPC_STRUCT_MEMBER(GURL, main_resource_url) |
622 IPC_STRUCT_MEMBER(GURL, mixed_content_url) | 623 IPC_STRUCT_MEMBER(GURL, mixed_content_url) |
623 IPC_STRUCT_MEMBER(content::RequestContextType, request_context_type) | 624 IPC_STRUCT_MEMBER(content::RequestContextType, request_context_type) |
624 IPC_STRUCT_MEMBER(bool, was_allowed) | 625 IPC_STRUCT_MEMBER(bool, was_allowed) |
625 IPC_STRUCT_MEMBER(bool, had_redirect) | 626 IPC_STRUCT_MEMBER(bool, had_redirect) |
626 IPC_STRUCT_MEMBER(content::SourceLocation, source_location) | 627 IPC_STRUCT_MEMBER(content::SourceLocation, source_location) |
627 IPC_STRUCT_END() | 628 IPC_STRUCT_END() |
628 | 629 |
| 630 IPC_STRUCT_BEGIN(FrameMsg_CommitDataNetworkService_Params) |
| 631 IPC_STRUCT_MEMBER(mojo::DataPipeConsumerHandle, handle) |
| 632 IPC_STRUCT_MEMBER(mojo::MessagePipeHandle, url_loader_factory) |
| 633 IPC_STRUCT_END() |
| 634 |
629 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 635 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
630 // This message is used for supporting popup menus on Mac OS X and Android using | 636 // This message is used for supporting popup menus on Mac OS X and Android using |
631 // native controls. See the FrameHostMsg_ShowPopup message. | 637 // native controls. See the FrameHostMsg_ShowPopup message. |
632 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 638 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
633 // Position on the screen. | 639 // Position on the screen. |
634 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 640 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
635 | 641 |
636 // The height of each item in the menu. | 642 // The height of each item in the menu. |
637 IPC_STRUCT_MEMBER(int, item_height) | 643 IPC_STRUCT_MEMBER(int, item_height) |
638 | 644 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, | 912 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
907 bool /* user canceled the popup */, | 913 bool /* user canceled the popup */, |
908 std::vector<int> /* selected indices */) | 914 std::vector<int> /* selected indices */) |
909 #endif | 915 #endif |
910 #endif | 916 #endif |
911 | 917 |
912 // PlzNavigate | 918 // PlzNavigate |
913 // Tells the renderer that a navigation is ready to commit. The renderer should | 919 // Tells the renderer that a navigation is ready to commit. The renderer should |
914 // request |stream_url| to get access to the stream containing the body of the | 920 // request |stream_url| to get access to the stream containing the body of the |
915 // response. When --enable-network-service is in effect, |stream_url| is not | 921 // response. When --enable-network-service is in effect, |stream_url| is not |
916 // used, and instead the data is passed to the renderer in |handle|. | 922 // used, and instead the data is passed to the renderer in |commit_data.handle|. |
| 923 // When --enable-network-service, a URLLoaderFactory is optionally passed in |
| 924 // |commit_data| too. |
917 IPC_MESSAGE_ROUTED5(FrameMsg_CommitNavigation, | 925 IPC_MESSAGE_ROUTED5(FrameMsg_CommitNavigation, |
918 content::ResourceResponseHead, /* response */ | 926 content::ResourceResponseHead, /* response */ |
919 GURL, /* stream_url */ | 927 GURL, /* stream_url */ |
920 mojo::DataPipeConsumerHandle, /* handle */ | 928 FrameMsg_CommitDataNetworkService_Params, /* commit_data */ |
921 content::CommonNavigationParams, /* common_params */ | 929 content::CommonNavigationParams, /* common_params */ |
922 content::RequestNavigationParams /* request_params */) | 930 content::RequestNavigationParams /* request_params */) |
923 | 931 |
924 // PlzNavigate | 932 // PlzNavigate |
925 // Tells the renderer that a navigation failed with the error code |error_code| | 933 // Tells the renderer that a navigation failed with the error code |error_code| |
926 // and that the renderer should display an appropriate error page. | 934 // and that the renderer should display an appropriate error page. |
927 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 935 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
928 content::CommonNavigationParams, /* common_params */ | 936 content::CommonNavigationParams, /* common_params */ |
929 content::RequestNavigationParams, /* request_params */ | 937 content::RequestNavigationParams, /* request_params */ |
930 bool, /* stale_copy_in_cache */ | 938 bool, /* stale_copy_in_cache */ |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 int /* nfr_request_id */, | 1664 int /* nfr_request_id */, |
1657 float /* distance */) | 1665 float /* distance */) |
1658 | 1666 |
1659 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1667 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
1660 #endif | 1668 #endif |
1661 | 1669 |
1662 // Adding a new message? Stick to the sort order above: first platform | 1670 // Adding a new message? Stick to the sort order above: first platform |
1663 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1671 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1664 // platform independent FrameHostMsg, then ifdefs for platform specific | 1672 // platform independent FrameHostMsg, then ifdefs for platform specific |
1665 // FrameHostMsg. | 1673 // FrameHostMsg. |
OLD | NEW |