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

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

Issue 2655663004: Introduce content-side Feature Policy object and maintain in parallel with renderer policy. (Closed)
Patch Set: Add comments for public enum members 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/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 render_manager_.OnDidUpdateName(name, unique_name); 279 render_manager_.OnDidUpdateName(name, unique_name);
280 replication_state_.name = name; 280 replication_state_.name = name;
281 replication_state_.unique_name = unique_name; 281 replication_state_.unique_name = unique_name;
282 } 282 }
283 283
284 void FrameTreeNode::SetFeaturePolicyHeader( 284 void FrameTreeNode::SetFeaturePolicyHeader(
285 const ParsedFeaturePolicyHeader& parsed_header) { 285 const ParsedFeaturePolicyHeader& parsed_header) {
286 replication_state_.feature_policy_header = parsed_header; 286 replication_state_.feature_policy_header = parsed_header;
287 } 287 }
288 288
289 void FrameTreeNode::ResetFeaturePolicy() { 289 void FrameTreeNode::ResetFeaturePolicyHeader() {
290 replication_state_.feature_policy_header.clear(); 290 replication_state_.feature_policy_header.clear();
291 } 291 }
292 292
293 void FrameTreeNode::AddContentSecurityPolicy( 293 void FrameTreeNode::AddContentSecurityPolicy(
294 const ContentSecurityPolicyHeader& header) { 294 const ContentSecurityPolicyHeader& header) {
295 replication_state_.accumulated_csp_headers.push_back(header); 295 replication_state_.accumulated_csp_headers.push_back(header);
296 render_manager_.OnDidAddContentSecurityPolicy(header); 296 render_manager_.OnDidAddContentSecurityPolicy(header);
297 } 297 }
298 298
299 void FrameTreeNode::ResetContentSecurityPolicy() { 299 void FrameTreeNode::ResetContentSecurityPolicy() {
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 } 553 }
554 return parent_->child_at(i + relative_offset); 554 return parent_->child_at(i + relative_offset);
555 } 555 }
556 } 556 }
557 557
558 NOTREACHED() << "FrameTreeNode not found in its parent's children."; 558 NOTREACHED() << "FrameTreeNode not found in its parent's children.";
559 return nullptr; 559 return nullptr;
560 } 560 }
561 561
562 } // namespace content 562 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698