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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Remove layout test; better coverage with unit tests Created 4 years, 1 month 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 #if defined(OS_ANDROID) 394 #if defined(OS_ANDROID)
395 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) 395 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string)
396 #endif 396 #endif
397 IPC_STRUCT_TRAITS_END() 397 IPC_STRUCT_TRAITS_END()
398 398
399 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 399 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
400 IPC_STRUCT_TRAITS_MEMBER(origin) 400 IPC_STRUCT_TRAITS_MEMBER(origin)
401 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 401 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
402 IPC_STRUCT_TRAITS_MEMBER(name) 402 IPC_STRUCT_TRAITS_MEMBER(name)
403 IPC_STRUCT_TRAITS_MEMBER(unique_name) 403 IPC_STRUCT_TRAITS_MEMBER(unique_name)
404 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header)
404 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) 405 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers)
405 IPC_STRUCT_TRAITS_MEMBER(scope) 406 IPC_STRUCT_TRAITS_MEMBER(scope)
406 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) 407 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy)
407 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) 408 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin)
408 IPC_STRUCT_TRAITS_END() 409 IPC_STRUCT_TRAITS_END()
409 410
410 // Parameters included with an OpenURL request. 411 // Parameters included with an OpenURL request.
411 // |is_history_navigation_in_new_child| is true in the case that the browser 412 // |is_history_navigation_in_new_child| is true in the case that the browser
412 // process should look for an existing history item for the frame. 413 // process should look for an existing history item for the frame.
413 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 414 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading) 995 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading)
995 996
996 // Notifies the browser that this frame has new session history information. 997 // Notifies the browser that this frame has new session history information.
997 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) 998 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */)
998 999
999 // Sent when the frame changes its window.name. 1000 // Sent when the frame changes its window.name.
1000 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName, 1001 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName,
1001 std::string /* name */, 1002 std::string /* name */,
1002 std::string /* unique_name */) 1003 std::string /* unique_name */)
1003 1004
1005 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, std::string)
alexmos 2016/11/17 21:45:59 Please add a comment for what this is for, and men
iclelland 2016/11/18 16:12:37 Done.
1006
1004 // Notifies the browser process about a new Content Security Policy that needs 1007 // Notifies the browser process about a new Content Security Policy that needs
1005 // to be applies to the frame. This message is sent when a frame commits 1008 // to be applies to the frame. This message is sent when a frame commits
1006 // navigation to a new location (reporting accumulated policies from HTTP 1009 // navigation to a new location (reporting accumulated policies from HTTP
1007 // headers and/or policies that might have been inherited from the parent frame) 1010 // headers and/or policies that might have been inherited from the parent frame)
1008 // or when a new policy has been discovered afterwards (i.e. found in a 1011 // or when a new policy has been discovered afterwards (i.e. found in a
1009 // dynamically added or a static <meta> element). 1012 // dynamically added or a static <meta> element).
1010 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, 1013 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy,
1011 content::ContentSecurityPolicyHeader) 1014 content::ContentSecurityPolicyHeader)
1012 1015
1013 // Sent when the frame starts enforcing an insecure request policy. Sending 1016 // Sent when the frame starts enforcing an insecure request policy. Sending
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 // nearest find result in the sending frame. 1522 // nearest find result in the sending frame.
1520 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1523 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1521 int /* nfr_request_id */, 1524 int /* nfr_request_id */,
1522 float /* distance */) 1525 float /* distance */)
1523 #endif 1526 #endif
1524 1527
1525 // Adding a new message? Stick to the sort order above: first platform 1528 // Adding a new message? Stick to the sort order above: first platform
1526 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1529 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1527 // platform independent FrameHostMsg, then ifdefs for platform specific 1530 // platform independent FrameHostMsg, then ifdefs for platform specific
1528 // FrameHostMsg. 1531 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698