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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 8 months 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ 5 #ifndef CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
6 #define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ 6 #define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // |unique_name| needs to be replicated to ensure that unique name for a given 83 // |unique_name| needs to be replicated to ensure that unique name for a given
84 // frame is the same across all renderers - without replication a renderer 84 // frame is the same across all renderers - without replication a renderer
85 // might arrive at a different value when recalculating the unique name from 85 // might arrive at a different value when recalculating the unique name from
86 // scratch. 86 // scratch.
87 std::string unique_name; 87 std::string unique_name;
88 88
89 // Parsed feature policy header. May be empty if no header was sent with the 89 // Parsed feature policy header. May be empty if no header was sent with the
90 // document. 90 // document.
91 ParsedFeaturePolicyHeader feature_policy_header; 91 ParsedFeaturePolicyHeader feature_policy_header;
92 92
93 // Container Policy. May be empty if this is the top-level frame.
94 ParsedFeaturePolicyHeader container_policy;
95
93 // Accumulated CSP headers - gathered from http headers, <meta> elements, 96 // Accumulated CSP headers - gathered from http headers, <meta> elements,
94 // parent frames (in case of about:blank frames). 97 // parent frames (in case of about:blank frames).
95 std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers; 98 std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers;
96 99
97 // Whether the frame is in a document tree or a shadow tree, per the Shadow 100 // Whether the frame is in a document tree or a shadow tree, per the Shadow
98 // DOM spec: https://w3c.github.io/webcomponents/spec/shadow/ 101 // DOM spec: https://w3c.github.io/webcomponents/spec/shadow/
99 // Note: This should really be const, as it can never change once a frame is 102 // Note: This should really be const, as it can never change once a frame is
100 // created. However, making it const makes it a pain to embed into IPC message 103 // created. However, making it const makes it a pain to embed into IPC message
101 // params: having a const member implicitly deletes the copy assignment 104 // params: having a const member implicitly deletes the copy assignment
102 // operator. 105 // operator.
103 blink::WebTreeScopeType scope; 106 blink::WebTreeScopeType scope;
104 107
105 // The insecure request policy that a frame's current document is enforcing. 108 // The insecure request policy that a frame's current document is enforcing.
106 // Updates are immediately sent to all frame proxies when frames live in 109 // Updates are immediately sent to all frame proxies when frames live in
107 // different processes. 110 // different processes.
108 blink::WebInsecureRequestPolicy insecure_request_policy; 111 blink::WebInsecureRequestPolicy insecure_request_policy;
109 112
110 // True if a frame's origin is unique and should be considered potentially 113 // True if a frame's origin is unique and should be considered potentially
111 // trustworthy. 114 // trustworthy.
112 bool has_potentially_trustworthy_unique_origin; 115 bool has_potentially_trustworthy_unique_origin;
113 116
114 // Whether the frame has ever received a user gesture anywhere. 117 // Whether the frame has ever received a user gesture anywhere.
115 bool has_received_user_gesture; 118 bool has_received_user_gesture;
116 }; 119 };
117 120
118 } // namespace content 121 } // namespace content
119 122
120 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ 123 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698