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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 return replication_state_.origin; | 142 return replication_state_.origin; |
143 } | 143 } |
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, clearing any existing policy after |
| 153 // navigation. |
| 154 void SetFeaturePolicyHeader(const std::string& header); |
| 155 |
152 // Add CSP header to replication state and notify proxies about the update. | 156 // Add CSP header to replication state and notify proxies about the update. |
153 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); | 157 void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); |
154 | 158 |
155 // Discards previous CSP headers and notifies proxies about the update. | 159 // Discards previous CSP headers and notifies proxies about the update. |
156 // Typically invoked after committing navigation to a new document (since the | 160 // Typically invoked after committing navigation to a new document (since the |
157 // new document comes with a fresh set of CSP http headers). | 161 // new document comes with a fresh set of CSP http headers). |
158 void ResetContentSecurityPolicy(); | 162 void ResetContentSecurityPolicy(); |
159 | 163 |
160 // Sets the current insecure request policy, and notifies proxies about the | 164 // Sets the current insecure request policy, and notifies proxies about the |
161 // update. | 165 // update. |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // browser process activities to this node (when possible). It is unrelated | 375 // browser process activities to this node (when possible). It is unrelated |
372 // to the core logic of FrameTreeNode. | 376 // to the core logic of FrameTreeNode. |
373 FrameTreeNodeBlameContext blame_context_; | 377 FrameTreeNodeBlameContext blame_context_; |
374 | 378 |
375 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 379 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
376 }; | 380 }; |
377 | 381 |
378 } // namespace content | 382 } // namespace content |
379 | 383 |
380 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 384 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |