Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: content/common/frame_messages.h

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Fp2 Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) 391 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
392 IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker) 392 IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker)
393 IPC_STRUCT_TRAITS_MEMBER(navigation_timing) 393 IPC_STRUCT_TRAITS_MEMBER(navigation_timing)
394 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) 394 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id)
395 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 395 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
396 #if defined(OS_ANDROID) 396 #if defined(OS_ANDROID)
397 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) 397 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string)
398 #endif 398 #endif
399 IPC_STRUCT_TRAITS_END() 399 IPC_STRUCT_TRAITS_END()
400 400
401 IPC_STRUCT_TRAITS_BEGIN(content::FeaturePolicyParsedWhitelist)
402 IPC_STRUCT_TRAITS_MEMBER(feature_name)
403 IPC_STRUCT_TRAITS_MEMBER(matches_all_origins)
404 IPC_STRUCT_TRAITS_MEMBER(origins)
405 IPC_STRUCT_TRAITS_END()
406
401 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 407 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
402 IPC_STRUCT_TRAITS_MEMBER(origin) 408 IPC_STRUCT_TRAITS_MEMBER(origin)
403 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 409 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
404 IPC_STRUCT_TRAITS_MEMBER(name) 410 IPC_STRUCT_TRAITS_MEMBER(name)
405 IPC_STRUCT_TRAITS_MEMBER(unique_name) 411 IPC_STRUCT_TRAITS_MEMBER(unique_name)
406 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header) 412 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header)
407 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) 413 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers)
408 IPC_STRUCT_TRAITS_MEMBER(scope) 414 IPC_STRUCT_TRAITS_MEMBER(scope)
409 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) 415 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy)
410 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) 416 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin)
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 // Notifies the browser that this frame has new session history information. 1011 // Notifies the browser that this frame has new session history information.
1006 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) 1012 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */)
1007 1013
1008 // Sent when the frame changes its window.name. 1014 // Sent when the frame changes its window.name.
1009 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName, 1015 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName,
1010 std::string /* name */, 1016 std::string /* name */,
1011 std::string /* unique_name */) 1017 std::string /* unique_name */)
1012 1018
1013 // Notifies the browser process that a non-empty Feature-Policy HTTP header was 1019 // Notifies the browser process that a non-empty Feature-Policy HTTP header was
1014 // delivered with the document being loaded into the frame. 1020 // delivered with the document being loaded into the frame.
1015 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, std::string) 1021 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader,
1022 std::vector<content::FeaturePolicyParsedWhitelist>)
1016 1023
1017 // Notifies the browser process about a new Content Security Policy that needs 1024 // Notifies the browser process about a new Content Security Policy that needs
1018 // to be applies to the frame. This message is sent when a frame commits 1025 // to be applies to the frame. This message is sent when a frame commits
1019 // navigation to a new location (reporting accumulated policies from HTTP 1026 // navigation to a new location (reporting accumulated policies from HTTP
1020 // headers and/or policies that might have been inherited from the parent frame) 1027 // headers and/or policies that might have been inherited from the parent frame)
1021 // or when a new policy has been discovered afterwards (i.e. found in a 1028 // or when a new policy has been discovered afterwards (i.e. found in a
1022 // dynamically added or a static <meta> element). 1029 // dynamically added or a static <meta> element).
1023 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, 1030 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy,
1024 content::ContentSecurityPolicyHeader) 1031 content::ContentSecurityPolicyHeader)
1025 1032
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 // nearest find result in the sending frame. 1545 // nearest find result in the sending frame.
1539 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1546 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1540 int /* nfr_request_id */, 1547 int /* nfr_request_id */,
1541 float /* distance */) 1548 float /* distance */)
1542 #endif 1549 #endif
1543 1550
1544 // Adding a new message? Stick to the sort order above: first platform 1551 // Adding a new message? Stick to the sort order above: first platform
1545 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1552 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1546 // platform independent FrameHostMsg, then ifdefs for platform specific 1553 // platform independent FrameHostMsg, then ifdefs for platform specific
1547 // FrameHostMsg. 1554 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698