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

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

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). 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
« 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); 160 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
161 161
162 // Discards previous CSP headers and notifies proxies about the update. 162 // Discards previous CSP headers and notifies proxies about the update.
163 // Typically invoked after committing navigation to a new document (since the 163 // Typically invoked after committing navigation to a new document (since the
164 // new document comes with a fresh set of CSP http headers). 164 // new document comes with a fresh set of CSP http headers).
165 void ResetContentSecurityPolicy(); 165 void ResetContentSecurityPolicy();
166 166
167 // Sets the current insecure request policy, and notifies proxies about the 167 // Sets the current insecure request policy, and notifies proxies about the
168 // update. 168 // update.
169 void SetInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 169 void SetInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
170 void SetInsecureNavigationsSet(
171 const std::vector<uint32_t>& insecure_navigations_set);
170 172
171 // Returns the currently active sandbox flags for this frame. This includes 173 // Returns the currently active sandbox flags for this frame. This includes
172 // flags inherited from parent frames and the currently active flags from the 174 // flags inherited from parent frames and the currently active flags from the
173 // <iframe> element hosting this frame. This does not include flags that 175 // <iframe> element hosting this frame. This does not include flags that
174 // have been updated in an <iframe> element but have not taken effect yet; 176 // have been updated in an <iframe> element but have not taken effect yet;
175 // use pending_sandbox_flags() for those. 177 // use pending_sandbox_flags() for those.
176 blink::WebSandboxFlags effective_sandbox_flags() const { 178 blink::WebSandboxFlags effective_sandbox_flags() const {
177 return replication_state_.sandbox_flags; 179 return replication_state_.sandbox_flags;
178 } 180 }
179 181
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // browser process activities to this node (when possible). It is unrelated 380 // browser process activities to this node (when possible). It is unrelated
379 // to the core logic of FrameTreeNode. 381 // to the core logic of FrameTreeNode.
380 FrameTreeNodeBlameContext blame_context_; 382 FrameTreeNodeBlameContext blame_context_;
381 383
382 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 384 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
383 }; 385 };
384 386
385 } // namespace content 387 } // namespace content
386 388
387 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 389 #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