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

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

Issue 2648423002: Rename feature policy classes. (Closed)
Patch Set: Rebase Created 3 years, 10 months 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
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 #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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 DCHECK(unique_name.empty()); 250 DCHECK(unique_name.empty());
251 } 251 }
252 252
253 RecordUniqueNameLength(unique_name.size()); 253 RecordUniqueNameLength(unique_name.size());
254 render_manager_.OnDidUpdateName(name, unique_name); 254 render_manager_.OnDidUpdateName(name, unique_name);
255 replication_state_.name = name; 255 replication_state_.name = name;
256 replication_state_.unique_name = unique_name; 256 replication_state_.unique_name = unique_name;
257 } 257 }
258 258
259 void FrameTreeNode::SetFeaturePolicyHeader( 259 void FrameTreeNode::SetFeaturePolicyHeader(
260 const ParsedFeaturePolicy& parsed_header) { 260 const ParsedFeaturePolicyHeader& parsed_header) {
261 replication_state_.feature_policy_header = parsed_header; 261 replication_state_.feature_policy_header = parsed_header;
262 } 262 }
263 263
264 void FrameTreeNode::ResetFeaturePolicy() { 264 void FrameTreeNode::ResetFeaturePolicy() {
265 replication_state_.feature_policy_header.clear(); 265 replication_state_.feature_policy_header.clear();
266 } 266 }
267 267
268 void FrameTreeNode::AddContentSecurityPolicy( 268 void FrameTreeNode::AddContentSecurityPolicy(
269 const ContentSecurityPolicyHeader& header) { 269 const ContentSecurityPolicyHeader& header) {
270 replication_state_.accumulated_csp_headers.push_back(header); 270 replication_state_.accumulated_csp_headers.push_back(header);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 } 527 }
528 return parent_->child_at(i + relative_offset); 528 return parent_->child_at(i + relative_offset);
529 } 529 }
530 } 530 }
531 531
532 NOTREACHED() << "FrameTreeNode not found in its parent's children."; 532 NOTREACHED() << "FrameTreeNode not found in its parent's children.";
533 return nullptr; 533 return nullptr;
534 } 534 }
535 535
536 } // namespace content 536 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698