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

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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Set the current origin and notify proxies about the update. 145 // Set the current origin and notify proxies about the update.
146 void SetCurrentOrigin(const url::Origin& origin, 146 void SetCurrentOrigin(const url::Origin& origin,
147 bool is_potentially_trustworthy_unique_origin); 147 bool is_potentially_trustworthy_unique_origin);
148 148
149 // Set the current name and notify proxies about the update. 149 // Set the current name and notify proxies about the update.
150 void SetFrameName(const std::string& name, const std::string& unique_name); 150 void SetFrameName(const std::string& name, const std::string& unique_name);
151 151
152 // Set the frame's feature policy from an HTTP header, clearing any existing 152 // Set the frame's feature policy from an HTTP header, clearing any existing
153 // policy. 153 // policy.
154 void SetFeaturePolicyHeader(const std::string& header); 154 void SetFeaturePolicyHeader(const ParsedFeaturePolicy& parsed_header);
155 155
156 // Clear any feature policy associated with the frame. 156 // Clear any feature policy associated with the frame.
157 void ResetFeaturePolicy(); 157 void ResetFeaturePolicy();
158 158
159 // Add CSP header to replication state and notify proxies about the update. 159 // Add CSP header to replication state and notify proxies about the update.
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).
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // browser process activities to this node (when possible). It is unrelated 378 // browser process activities to this node (when possible). It is unrelated
379 // to the core logic of FrameTreeNode. 379 // to the core logic of FrameTreeNode.
380 FrameTreeNodeBlameContext blame_context_; 380 FrameTreeNodeBlameContext blame_context_;
381 381
382 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 382 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
383 }; 383 };
384 384
385 } // namespace content 385 } // namespace content
386 386
387 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 387 #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