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/content_security_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/message_port.h" | 28 #include "content/common/message_port.h" |
29 #include "content/common/navigation_gesture.h" | 29 #include "content/common/navigation_gesture.h" |
30 #include "content/common/navigation_params.h" | 30 #include "content/common/navigation_params.h" |
31 #include "content/common/savable_subframe.h" | 31 #include "content/common/savable_subframe.h" |
32 #include "content/public/common/color_suggestion.h" | 32 #include "content/public/common/color_suggestion.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 IPC_STRUCT_TRAITS_MEMBER(allow_download) | 339 IPC_STRUCT_TRAITS_MEMBER(allow_download) |
340 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) | 340 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) |
341 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) | 341 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) |
342 IPC_STRUCT_TRAITS_MEMBER(report_type) | 342 IPC_STRUCT_TRAITS_MEMBER(report_type) |
343 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) | 343 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) |
344 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) | 344 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) |
345 IPC_STRUCT_TRAITS_MEMBER(previews_state) | 345 IPC_STRUCT_TRAITS_MEMBER(previews_state) |
346 IPC_STRUCT_TRAITS_MEMBER(navigation_start) | 346 IPC_STRUCT_TRAITS_MEMBER(navigation_start) |
347 IPC_STRUCT_TRAITS_MEMBER(method) | 347 IPC_STRUCT_TRAITS_MEMBER(method) |
348 IPC_STRUCT_TRAITS_MEMBER(post_data) | 348 IPC_STRUCT_TRAITS_MEMBER(post_data) |
| 349 IPC_STRUCT_TRAITS_MEMBER(should_bypass_main_world_csp) |
349 IPC_STRUCT_TRAITS_END() | 350 IPC_STRUCT_TRAITS_END() |
350 | 351 |
351 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) | 352 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) |
352 IPC_STRUCT_TRAITS_MEMBER(headers) | 353 IPC_STRUCT_TRAITS_MEMBER(headers) |
353 IPC_STRUCT_TRAITS_MEMBER(load_flags) | 354 IPC_STRUCT_TRAITS_MEMBER(load_flags) |
354 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 355 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
355 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) | 356 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) |
356 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 357 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
357 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) | 358 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type) |
358 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 359 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) | 567 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) |
567 IPC_STRUCT_TRAITS_MEMBER(header) | 568 IPC_STRUCT_TRAITS_MEMBER(header) |
568 IPC_STRUCT_TRAITS_END() | 569 IPC_STRUCT_TRAITS_END() |
569 | 570 |
570 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 571 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
571 IPC_STRUCT_TRAITS_MEMBER(header_value) | 572 IPC_STRUCT_TRAITS_MEMBER(header_value) |
572 IPC_STRUCT_TRAITS_MEMBER(type) | 573 IPC_STRUCT_TRAITS_MEMBER(type) |
573 IPC_STRUCT_TRAITS_MEMBER(source) | 574 IPC_STRUCT_TRAITS_MEMBER(source) |
574 IPC_STRUCT_TRAITS_END() | 575 IPC_STRUCT_TRAITS_END() |
575 | 576 |
| 577 IPC_STRUCT_TRAITS_BEGIN(content::CSPViolationParams) |
| 578 IPC_STRUCT_TRAITS_MEMBER(directive) |
| 579 IPC_STRUCT_TRAITS_MEMBER(effective_directive) |
| 580 IPC_STRUCT_TRAITS_MEMBER(console_message) |
| 581 IPC_STRUCT_TRAITS_MEMBER(blocked_url) |
| 582 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) |
| 583 IPC_STRUCT_TRAITS_MEMBER(header) |
| 584 IPC_STRUCT_TRAITS_MEMBER(disposition) |
| 585 IPC_STRUCT_TRAITS_MEMBER(after_redirect) |
| 586 IPC_STRUCT_TRAITS_END() |
| 587 |
576 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) | 588 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) |
577 IPC_STRUCT_TRAITS_MEMBER(file_path) | 589 IPC_STRUCT_TRAITS_MEMBER(file_path) |
578 IPC_STRUCT_TRAITS_MEMBER(display_name) | 590 IPC_STRUCT_TRAITS_MEMBER(display_name) |
579 IPC_STRUCT_TRAITS_MEMBER(file_system_url) | 591 IPC_STRUCT_TRAITS_MEMBER(file_system_url) |
580 IPC_STRUCT_TRAITS_MEMBER(modification_time) | 592 IPC_STRUCT_TRAITS_MEMBER(modification_time) |
581 IPC_STRUCT_TRAITS_MEMBER(length) | 593 IPC_STRUCT_TRAITS_MEMBER(length) |
582 IPC_STRUCT_TRAITS_MEMBER(is_directory) | 594 IPC_STRUCT_TRAITS_MEMBER(is_directory) |
583 IPC_STRUCT_TRAITS_END() | 595 IPC_STRUCT_TRAITS_END() |
584 | 596 |
585 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 597 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 | 899 |
888 // PlzNavigate | 900 // PlzNavigate |
889 // Tells the renderer that a navigation failed with the error code |error_code| | 901 // Tells the renderer that a navigation failed with the error code |error_code| |
890 // and that the renderer should display an appropriate error page. | 902 // and that the renderer should display an appropriate error page. |
891 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 903 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
892 content::CommonNavigationParams, /* common_params */ | 904 content::CommonNavigationParams, /* common_params */ |
893 content::RequestNavigationParams, /* request_params */ | 905 content::RequestNavigationParams, /* request_params */ |
894 bool, /* stale_copy_in_cache */ | 906 bool, /* stale_copy_in_cache */ |
895 int /* error_code */) | 907 int /* error_code */) |
896 | 908 |
| 909 // PlzNavigate |
| 910 // Tells the renderer that a navigation was blocked because a content security |
| 911 // policy was violated. |
| 912 IPC_MESSAGE_ROUTED1(FrameMsg_ReportContentSecurityPolicyViolation, |
| 913 content::CSPViolationParams /* violation_params */) |
| 914 |
897 // Request to enumerate and return links to all savable resources in the frame | 915 // Request to enumerate and return links to all savable resources in the frame |
898 // Note: this covers only the immediate frame / doesn't cover subframes. | 916 // Note: this covers only the immediate frame / doesn't cover subframes. |
899 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) | 917 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) |
900 | 918 |
901 // Get html data by serializing the target frame and replacing all resource | 919 // Get html data by serializing the target frame and replacing all resource |
902 // links with a path to the local copy passed in the message payload. | 920 // links with a path to the local copy passed in the message payload. |
903 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks, | 921 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks, |
904 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap, | 922 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap, |
905 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap) | 923 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap) |
906 | 924 |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 // nearest find result in the sending frame. | 1630 // nearest find result in the sending frame. |
1613 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1631 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1614 int /* nfr_request_id */, | 1632 int /* nfr_request_id */, |
1615 float /* distance */) | 1633 float /* distance */) |
1616 #endif | 1634 #endif |
1617 | 1635 |
1618 // Adding a new message? Stick to the sort order above: first platform | 1636 // Adding a new message? Stick to the sort order above: first platform |
1619 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1637 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1620 // platform independent FrameHostMsg, then ifdefs for platform specific | 1638 // platform independent FrameHostMsg, then ifdefs for platform specific |
1621 // FrameHostMsg. | 1639 // FrameHostMsg. |
OLD | NEW |