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

Side by Side Diff: content/browser/frame_host/frame_tree_node.h

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. 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 | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('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 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 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Set the current name and notify proxies about the update. 162 // Set the current name and notify proxies about the update.
163 void SetFrameName(const std::string& name, const std::string& unique_name); 163 void SetFrameName(const std::string& name, const std::string& unique_name);
164 164
165 // Set the frame's feature policy header, clearing any existing header. 165 // Set the frame's feature policy header, clearing any existing header.
166 void SetFeaturePolicyHeader(const ParsedFeaturePolicyHeader& parsed_header); 166 void SetFeaturePolicyHeader(const ParsedFeaturePolicyHeader& parsed_header);
167 167
168 // Clear any feature policy header associated with the frame. 168 // Clear any feature policy header associated with the frame.
169 void ResetFeaturePolicyHeader(); 169 void ResetFeaturePolicyHeader();
170 170
171 // Add CSP header to replication state, notify proxies about the update and 171 // Add CSP headers to replication state, notify proxies about the update.
172 // enforce it on the browser. 172 void AddContentSecurityPolicies(
173 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); 173 const std::vector<ContentSecurityPolicyHeader>& headers);
174 174
175 // Discards previous CSP headers and notifies proxies about the update. 175 // Discards previous CSP headers and notifies proxies about the update.
176 // Typically invoked after committing navigation to a new document (since the 176 // Typically invoked after committing navigation to a new document (since the
177 // new document comes with a fresh set of CSP http headers). 177 // new document comes with a fresh set of CSP http headers).
178 void ResetCspHeaders(); 178 void ResetCspHeaders();
179 179
180 // Sets the current insecure request policy, and notifies proxies about the 180 // Sets the current insecure request policy, and notifies proxies about the
181 // update. 181 // update.
182 void SetInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 182 void SetInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
183 183
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // browser process activities to this node (when possible). It is unrelated 404 // browser process activities to this node (when possible). It is unrelated
405 // to the core logic of FrameTreeNode. 405 // to the core logic of FrameTreeNode.
406 FrameTreeNodeBlameContext blame_context_; 406 FrameTreeNodeBlameContext blame_context_;
407 407
408 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 408 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
409 }; 409 };
410 410
411 } // namespace content 411 } // namespace content
412 412
413 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 413 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698