| 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 #include "content/browser/frame_host/frame_tree_node.h" | 5 #include "content/browser/frame_host/frame_tree_node.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Unique name of main frames should always stay empty. | 248 // Unique name of main frames should always stay empty. |
| 249 DCHECK(unique_name.empty()); | 249 DCHECK(unique_name.empty()); |
| 250 } | 250 } |
| 251 | 251 |
| 252 RecordUniqueNameLength(unique_name.size()); | 252 RecordUniqueNameLength(unique_name.size()); |
| 253 render_manager_.OnDidUpdateName(name, unique_name); | 253 render_manager_.OnDidUpdateName(name, unique_name); |
| 254 replication_state_.name = name; | 254 replication_state_.name = name; |
| 255 replication_state_.unique_name = unique_name; | 255 replication_state_.unique_name = unique_name; |
| 256 } | 256 } |
| 257 | 257 |
| 258 void FrameTreeNode::SetFeaturePolicyHeader(const std::string& header) { |
| 259 replication_state_.feature_policy_header = header; |
| 260 } |
| 261 |
| 262 void FrameTreeNode::ResetFeaturePolicy() { |
| 263 replication_state_.feature_policy_header.clear(); |
| 264 } |
| 265 |
| 258 void FrameTreeNode::AddContentSecurityPolicy( | 266 void FrameTreeNode::AddContentSecurityPolicy( |
| 259 const ContentSecurityPolicyHeader& header) { | 267 const ContentSecurityPolicyHeader& header) { |
| 260 replication_state_.accumulated_csp_headers.push_back(header); | 268 replication_state_.accumulated_csp_headers.push_back(header); |
| 261 render_manager_.OnDidAddContentSecurityPolicy(header); | 269 render_manager_.OnDidAddContentSecurityPolicy(header); |
| 262 } | 270 } |
| 263 | 271 |
| 264 void FrameTreeNode::ResetContentSecurityPolicy() { | 272 void FrameTreeNode::ResetContentSecurityPolicy() { |
| 265 replication_state_.accumulated_csp_headers.clear(); | 273 replication_state_.accumulated_csp_headers.clear(); |
| 266 render_manager_.OnDidResetContentSecurityPolicy(); | 274 render_manager_.OnDidResetContentSecurityPolicy(); |
| 267 } | 275 } |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 } | 520 } |
| 513 return parent_->child_at(i + relative_offset); | 521 return parent_->child_at(i + relative_offset); |
| 514 } | 522 } |
| 515 } | 523 } |
| 516 | 524 |
| 517 NOTREACHED() << "FrameTreeNode not found in its parent's children."; | 525 NOTREACHED() << "FrameTreeNode not found in its parent's children."; |
| 518 return nullptr; | 526 return nullptr; |
| 519 } | 527 } |
| 520 | 528 |
| 521 } // namespace content | 529 } // namespace content |
| OLD | NEW |