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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 IPC_STRUCT_TRAITS_MEMBER(is_view_source) | 385 IPC_STRUCT_TRAITS_MEMBER(is_view_source) |
386 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 386 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
387 IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker) | 387 IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker) |
388 IPC_STRUCT_TRAITS_MEMBER(navigation_timing) | 388 IPC_STRUCT_TRAITS_MEMBER(navigation_timing) |
389 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) | 389 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) |
390 #if defined(OS_ANDROID) | 390 #if defined(OS_ANDROID) |
391 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) | 391 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) |
392 #endif | 392 #endif |
393 IPC_STRUCT_TRAITS_END() | 393 IPC_STRUCT_TRAITS_END() |
394 | 394 |
| 395 IPC_STRUCT_TRAITS_BEGIN(content::FeaturePolicyParsedWhitelist) |
| 396 IPC_STRUCT_TRAITS_MEMBER(feature_name) |
| 397 IPC_STRUCT_TRAITS_MEMBER(matches_all_origins) |
| 398 IPC_STRUCT_TRAITS_MEMBER(origins) |
| 399 IPC_STRUCT_TRAITS_END() |
| 400 |
395 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 401 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
396 IPC_STRUCT_TRAITS_MEMBER(origin) | 402 IPC_STRUCT_TRAITS_MEMBER(origin) |
397 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 403 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
398 IPC_STRUCT_TRAITS_MEMBER(name) | 404 IPC_STRUCT_TRAITS_MEMBER(name) |
399 IPC_STRUCT_TRAITS_MEMBER(unique_name) | 405 IPC_STRUCT_TRAITS_MEMBER(unique_name) |
400 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header) | 406 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header) |
401 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) | 407 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) |
402 IPC_STRUCT_TRAITS_MEMBER(scope) | 408 IPC_STRUCT_TRAITS_MEMBER(scope) |
403 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) | 409 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) |
404 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) | 410 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 | 979 |
974 // Notifies the browser that this frame has new session history information. | 980 // Notifies the browser that this frame has new session history information. |
975 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) | 981 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) |
976 | 982 |
977 // Sent when the frame changes its window.name. | 983 // Sent when the frame changes its window.name. |
978 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName, | 984 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName, |
979 std::string /* name */, | 985 std::string /* name */, |
980 std::string /* unique_name */) | 986 std::string /* unique_name */) |
981 | 987 |
982 // Notifies the browser process that a non-empty Feature-Policy HTTP header was | 988 // Notifies the browser process that a non-empty Feature-Policy HTTP header was |
983 // delivered with the document being loaded into the frame. | 989 // delivered with the document being loaded into the frame. |parsed_header| is |
984 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, std::string) | 990 // a list of an origin whitelist for each feature in the policy. |
| 991 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, |
| 992 content::ParsedFeaturePolicy /* parsed_header */) |
985 | 993 |
986 // Notifies the browser process about a new Content Security Policy that needs | 994 // Notifies the browser process about a new Content Security Policy that needs |
987 // to be applies to the frame. This message is sent when a frame commits | 995 // to be applies to the frame. This message is sent when a frame commits |
988 // navigation to a new location (reporting accumulated policies from HTTP | 996 // navigation to a new location (reporting accumulated policies from HTTP |
989 // headers and/or policies that might have been inherited from the parent frame) | 997 // headers and/or policies that might have been inherited from the parent frame) |
990 // or when a new policy has been discovered afterwards (i.e. found in a | 998 // or when a new policy has been discovered afterwards (i.e. found in a |
991 // dynamically added or a static <meta> element). | 999 // dynamically added or a static <meta> element). |
992 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, | 1000 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, |
993 content::ContentSecurityPolicyHeader) | 1001 content::ContentSecurityPolicyHeader) |
994 | 1002 |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 // nearest find result in the sending frame. | 1515 // nearest find result in the sending frame. |
1508 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1516 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1509 int /* nfr_request_id */, | 1517 int /* nfr_request_id */, |
1510 float /* distance */) | 1518 float /* distance */) |
1511 #endif | 1519 #endif |
1512 | 1520 |
1513 // Adding a new message? Stick to the sort order above: first platform | 1521 // Adding a new message? Stick to the sort order above: first platform |
1514 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1522 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1515 // platform independent FrameHostMsg, then ifdefs for platform specific | 1523 // platform independent FrameHostMsg, then ifdefs for platform specific |
1516 // FrameHostMsg. | 1524 // FrameHostMsg. |
OLD | NEW |