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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Addressing review comments 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 #if defined(OS_ANDROID) 395 #if defined(OS_ANDROID)
396 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) 396 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string)
397 #endif 397 #endif
398 IPC_STRUCT_TRAITS_END() 398 IPC_STRUCT_TRAITS_END()
399 399
400 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 400 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
401 IPC_STRUCT_TRAITS_MEMBER(origin) 401 IPC_STRUCT_TRAITS_MEMBER(origin)
402 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 402 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
403 IPC_STRUCT_TRAITS_MEMBER(name) 403 IPC_STRUCT_TRAITS_MEMBER(name)
404 IPC_STRUCT_TRAITS_MEMBER(unique_name) 404 IPC_STRUCT_TRAITS_MEMBER(unique_name)
405 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header)
405 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) 406 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers)
406 IPC_STRUCT_TRAITS_MEMBER(scope) 407 IPC_STRUCT_TRAITS_MEMBER(scope)
407 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) 408 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy)
408 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) 409 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin)
409 IPC_STRUCT_TRAITS_END() 410 IPC_STRUCT_TRAITS_END()
410 411
411 // Parameters included with an OpenURL request. 412 // Parameters included with an OpenURL request.
412 // |is_history_navigation_in_new_child| is true in the case that the browser 413 // |is_history_navigation_in_new_child| is true in the case that the browser
413 // process should look for an existing history item for the frame. 414 // process should look for an existing history item for the frame.
414 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 415 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading) 992 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading)
992 993
993 // Notifies the browser that this frame has new session history information. 994 // Notifies the browser that this frame has new session history information.
994 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) 995 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */)
995 996
996 // Sent when the frame changes its window.name. 997 // Sent when the frame changes its window.name.
997 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName, 998 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName,
998 std::string /* name */, 999 std::string /* name */,
999 std::string /* unique_name */) 1000 std::string /* unique_name */)
1000 1001
1002 // Notifies the browser process that a non-empty Feature-Policy HTTP header was
1003 // delivered with the document being loaded into the frame.
1004 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, std::string)
1005
1001 // Notifies the browser process about a new Content Security Policy that needs 1006 // Notifies the browser process about a new Content Security Policy that needs
1002 // to be applies to the frame. This message is sent when a frame commits 1007 // to be applies to the frame. This message is sent when a frame commits
1003 // navigation to a new location (reporting accumulated policies from HTTP 1008 // navigation to a new location (reporting accumulated policies from HTTP
1004 // headers and/or policies that might have been inherited from the parent frame) 1009 // headers and/or policies that might have been inherited from the parent frame)
1005 // or when a new policy has been discovered afterwards (i.e. found in a 1010 // or when a new policy has been discovered afterwards (i.e. found in a
1006 // dynamically added or a static <meta> element). 1011 // dynamically added or a static <meta> element).
1007 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, 1012 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy,
1008 content::ContentSecurityPolicyHeader) 1013 content::ContentSecurityPolicyHeader)
1009 1014
1010 // Sent when the frame starts enforcing an insecure request policy. Sending 1015 // Sent when the frame starts enforcing an insecure request policy. Sending
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 // nearest find result in the sending frame. 1521 // nearest find result in the sending frame.
1517 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1522 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1518 int /* nfr_request_id */, 1523 int /* nfr_request_id */,
1519 float /* distance */) 1524 float /* distance */)
1520 #endif 1525 #endif
1521 1526
1522 // Adding a new message? Stick to the sort order above: first platform 1527 // Adding a new message? Stick to the sort order above: first platform
1523 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1528 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1524 // platform independent FrameHostMsg, then ifdefs for platform specific 1529 // platform independent FrameHostMsg, then ifdefs for platform specific
1525 // FrameHostMsg. 1530 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/common/frame_replication_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698