OLD | NEW |
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 return replication_state_.origin; | 154 return replication_state_.origin; |
155 } | 155 } |
156 | 156 |
157 // Set the current origin and notify proxies about the update. | 157 // Set the current origin and notify proxies about the update. |
158 void SetCurrentOrigin(const url::Origin& origin, | 158 void SetCurrentOrigin(const url::Origin& origin, |
159 bool is_potentially_trustworthy_unique_origin); | 159 bool is_potentially_trustworthy_unique_origin); |
160 | 160 |
161 // Set the current name and notify proxies about the update. | 161 // Set the current name and notify proxies about the update. |
162 void SetFrameName(const std::string& name, const std::string& unique_name); | 162 void SetFrameName(const std::string& name, const std::string& unique_name); |
163 | 163 |
164 // Set the frame's feature policy from an HTTP header, clearing any existing | 164 // Set the frame's feature policy header, clearing any existing header. |
165 // policy. | |
166 void SetFeaturePolicyHeader(const ParsedFeaturePolicyHeader& parsed_header); | 165 void SetFeaturePolicyHeader(const ParsedFeaturePolicyHeader& parsed_header); |
167 | 166 |
168 // Clear any feature policy associated with the frame. | 167 // Clear any feature policy header associated with the frame. |
169 void ResetFeaturePolicy(); | 168 void ResetFeaturePolicyHeader(); |
170 | 169 |
171 // Add CSP header to replication state and notify proxies about the update. | 170 // Add CSP header to replication state and notify proxies about the update. |
172 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); | 171 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); |
173 | 172 |
174 // Discards previous CSP headers and notifies proxies about the update. | 173 // Discards previous CSP headers and notifies proxies about the update. |
175 // Typically invoked after committing navigation to a new document (since the | 174 // Typically invoked after committing navigation to a new document (since the |
176 // new document comes with a fresh set of CSP http headers). | 175 // new document comes with a fresh set of CSP http headers). |
177 void ResetContentSecurityPolicy(); | 176 void ResetContentSecurityPolicy(); |
178 | 177 |
179 // Sets the current insecure request policy, and notifies proxies about the | 178 // Sets the current insecure request policy, and notifies proxies about the |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // browser process activities to this node (when possible). It is unrelated | 399 // browser process activities to this node (when possible). It is unrelated |
401 // to the core logic of FrameTreeNode. | 400 // to the core logic of FrameTreeNode. |
402 FrameTreeNodeBlameContext blame_context_; | 401 FrameTreeNodeBlameContext blame_context_; |
403 | 402 |
404 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 403 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
405 }; | 404 }; |
406 | 405 |
407 } // namespace content | 406 } // namespace content |
408 | 407 |
409 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 408 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |