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 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "cc/surfaces/surface_id.h" | 17 #include "cc/surfaces/surface_id.h" |
18 #include "cc/surfaces/surface_info.h" | 18 #include "cc/surfaces/surface_info.h" |
19 #include "cc/surfaces/surface_sequence.h" | 19 #include "cc/surfaces/surface_sequence.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
21 #include "content/common/content_param_traits.h" | 21 #include "content/common/content_param_traits.h" |
22 #include "content/common/content_security_policy/csp_policy.h" | 22 #include "content/common/content_security_policy/csp_context.h" |
23 #include "content/common/content_security_policy_header.h" | 23 #include "content/common/content_security_policy_header.h" |
24 #include "content/common/download/mhtml_save_status.h" | 24 #include "content/common/download/mhtml_save_status.h" |
25 #include "content/common/frame_message_enums.h" | 25 #include "content/common/frame_message_enums.h" |
26 #include "content/common/frame_owner_properties.h" | 26 #include "content/common/frame_owner_properties.h" |
27 #include "content/common/frame_replication_state.h" | 27 #include "content/common/frame_replication_state.h" |
28 #include "content/common/navigation_gesture.h" | 28 #include "content/common/navigation_gesture.h" |
29 #include "content/common/navigation_params.h" | 29 #include "content/common/navigation_params.h" |
30 #include "content/common/savable_subframe.h" | 30 #include "content/common/savable_subframe.h" |
31 #include "content/public/common/color_suggestion.h" | 31 #include "content/public/common/color_suggestion.h" |
32 #include "content/public/common/common_param_traits.h" | 32 #include "content/public/common/common_param_traits.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
335 IPC_STRUCT_TRAITS_MEMBER(allow_download) | 335 IPC_STRUCT_TRAITS_MEMBER(allow_download) |
336 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) | 336 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) |
337 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) | 337 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) |
338 IPC_STRUCT_TRAITS_MEMBER(report_type) | 338 IPC_STRUCT_TRAITS_MEMBER(report_type) |
339 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) | 339 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) |
340 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) | 340 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) |
341 IPC_STRUCT_TRAITS_MEMBER(previews_state) | 341 IPC_STRUCT_TRAITS_MEMBER(previews_state) |
342 IPC_STRUCT_TRAITS_MEMBER(navigation_start) | 342 IPC_STRUCT_TRAITS_MEMBER(navigation_start) |
343 IPC_STRUCT_TRAITS_MEMBER(method) | 343 IPC_STRUCT_TRAITS_MEMBER(method) |
344 IPC_STRUCT_TRAITS_MEMBER(post_data) | 344 IPC_STRUCT_TRAITS_MEMBER(post_data) |
345 IPC_STRUCT_TRAITS_MEMBER(should_bypass_main_world_csp) | |
345 IPC_STRUCT_TRAITS_END() | 346 IPC_STRUCT_TRAITS_END() |
346 | 347 |
347 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) | 348 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) |
348 IPC_STRUCT_TRAITS_MEMBER(headers) | 349 IPC_STRUCT_TRAITS_MEMBER(headers) |
349 IPC_STRUCT_TRAITS_MEMBER(load_flags) | 350 IPC_STRUCT_TRAITS_MEMBER(load_flags) |
350 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 351 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
351 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) | 352 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) |
352 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 353 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
353 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) | 354 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) |
354 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 355 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
558 IPC_STRUCT_TRAITS_MEMBER(directives) | 559 IPC_STRUCT_TRAITS_MEMBER(directives) |
559 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) | 560 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) |
560 IPC_STRUCT_TRAITS_END() | 561 IPC_STRUCT_TRAITS_END() |
561 | 562 |
562 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 563 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
563 IPC_STRUCT_TRAITS_MEMBER(header_value) | 564 IPC_STRUCT_TRAITS_MEMBER(header_value) |
564 IPC_STRUCT_TRAITS_MEMBER(type) | 565 IPC_STRUCT_TRAITS_MEMBER(type) |
565 IPC_STRUCT_TRAITS_MEMBER(source) | 566 IPC_STRUCT_TRAITS_MEMBER(source) |
566 IPC_STRUCT_TRAITS_END() | 567 IPC_STRUCT_TRAITS_END() |
567 | 568 |
569 IPC_STRUCT_TRAITS_BEGIN(content::CSPViolationParams) | |
570 IPC_STRUCT_TRAITS_MEMBER(directive) | |
571 IPC_STRUCT_TRAITS_MEMBER(effective_directive) | |
572 IPC_STRUCT_TRAITS_MEMBER(console_message) | |
573 IPC_STRUCT_TRAITS_MEMBER(blocked_url) | |
574 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) | |
575 IPC_STRUCT_TRAITS_MEMBER(header) | |
576 IPC_STRUCT_TRAITS_MEMBER(disposition) | |
577 IPC_STRUCT_TRAITS_MEMBER(followed_redirect) | |
578 IPC_STRUCT_TRAITS_END() | |
579 | |
568 IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData) | 580 IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData) |
569 IPC_STRUCT_TRAITS_MEMBER(text) | 581 IPC_STRUCT_TRAITS_MEMBER(text) |
570 IPC_STRUCT_TRAITS_MEMBER(placeholder) | 582 IPC_STRUCT_TRAITS_MEMBER(placeholder) |
571 IPC_STRUCT_TRAITS_MEMBER(text_input_type) | 583 IPC_STRUCT_TRAITS_MEMBER(text_input_type) |
572 IPC_STRUCT_TRAITS_END() | 584 IPC_STRUCT_TRAITS_END() |
573 | 585 |
574 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) | 586 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) |
575 IPC_STRUCT_TRAITS_MEMBER(file_path) | 587 IPC_STRUCT_TRAITS_MEMBER(file_path) |
576 IPC_STRUCT_TRAITS_MEMBER(display_name) | 588 IPC_STRUCT_TRAITS_MEMBER(display_name) |
577 IPC_STRUCT_TRAITS_MEMBER(file_system_url) | 589 IPC_STRUCT_TRAITS_MEMBER(file_system_url) |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
889 | 901 |
890 // PlzNavigate | 902 // PlzNavigate |
891 // Tells the renderer that a navigation failed with the error code |error_code| | 903 // Tells the renderer that a navigation failed with the error code |error_code| |
892 // and that the renderer should display an appropriate error page. | 904 // and that the renderer should display an appropriate error page. |
893 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 905 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
894 content::CommonNavigationParams, /* common_params */ | 906 content::CommonNavigationParams, /* common_params */ |
895 content::RequestNavigationParams, /* request_params */ | 907 content::RequestNavigationParams, /* request_params */ |
896 bool, /* stale_copy_in_cache */ | 908 bool, /* stale_copy_in_cache */ |
897 int /* error_code */) | 909 int /* error_code */) |
898 | 910 |
911 // PlzNavigate | |
912 // Tells the renderer that a navigation was blocked because a content security | |
913 // policy was infringed. | |
nasko
2017/02/15 21:28:44
nit: s/infringed/violated/, so it is more consiste
arthursonzogni
2017/02/16 17:32:41
Done.
| |
914 IPC_MESSAGE_ROUTED1(FrameMsg_ContentSecurityPolicyViolation, | |
915 content::CSPViolationParams /* violation_params*/) | |
916 | |
899 // Request to enumerate and return links to all savable resources in the frame | 917 // Request to enumerate and return links to all savable resources in the frame |
900 // Note: this covers only the immediate frame / doesn't cover subframes. | 918 // Note: this covers only the immediate frame / doesn't cover subframes. |
901 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) | 919 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) |
902 | 920 |
903 // Get html data by serializing the target frame and replacing all resource | 921 // Get html data by serializing the target frame and replacing all resource |
904 // links with a path to the local copy passed in the message payload. | 922 // links with a path to the local copy passed in the message payload. |
905 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks, | 923 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks, |
906 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap, | 924 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap, |
907 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap) | 925 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap) |
908 | 926 |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1604 // nearest find result in the sending frame. | 1622 // nearest find result in the sending frame. |
1605 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1623 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1606 int /* nfr_request_id */, | 1624 int /* nfr_request_id */, |
1607 float /* distance */) | 1625 float /* distance */) |
1608 #endif | 1626 #endif |
1609 | 1627 |
1610 // Adding a new message? Stick to the sort order above: first platform | 1628 // Adding a new message? Stick to the sort order above: first platform |
1611 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1629 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1612 // platform independent FrameHostMsg, then ifdefs for platform specific | 1630 // platform independent FrameHostMsg, then ifdefs for platform specific |
1613 // FrameHostMsg. | 1631 // FrameHostMsg. |
OLD | NEW |