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

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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… Created 4 years 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/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 } 1763 }
1764 1764
1765 std::string old_name = frame_tree_node()->frame_name(); 1765 std::string old_name = frame_tree_node()->frame_name();
1766 frame_tree_node()->SetFrameName(name, unique_name); 1766 frame_tree_node()->SetFrameName(name, unique_name);
1767 if (old_name.empty() && !name.empty()) 1767 if (old_name.empty() && !name.empty())
1768 frame_tree_node_->render_manager()->CreateProxiesForNewNamedFrame(); 1768 frame_tree_node_->render_manager()->CreateProxiesForNewNamedFrame();
1769 delegate_->DidChangeName(this, name); 1769 delegate_->DidChangeName(this, name);
1770 } 1770 }
1771 1771
1772 void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader( 1772 void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader(
1773 const std::string& header) { 1773 const ParsedFeaturePolicy& parsed_header) {
1774 frame_tree_node()->SetFeaturePolicyHeader(header); 1774 frame_tree_node()->SetFeaturePolicyHeader(parsed_header);
1775 } 1775 }
1776 1776
1777 void RenderFrameHostImpl::OnDidAddContentSecurityPolicy( 1777 void RenderFrameHostImpl::OnDidAddContentSecurityPolicy(
1778 const ContentSecurityPolicyHeader& header) { 1778 const ContentSecurityPolicyHeader& header) {
1779 frame_tree_node()->AddContentSecurityPolicy(header); 1779 frame_tree_node()->AddContentSecurityPolicy(header);
1780 } 1780 }
1781 1781
1782 void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy( 1782 void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy(
1783 blink::WebInsecureRequestPolicy policy) { 1783 blink::WebInsecureRequestPolicy policy) {
1784 frame_tree_node()->SetInsecureRequestPolicy(policy); 1784 frame_tree_node()->SetInsecureRequestPolicy(policy);
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3341 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3342 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3342 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3343 return NavigationHandleImpl::Create( 3343 return NavigationHandleImpl::Create(
3344 params.url, frame_tree_node_, is_renderer_initiated, 3344 params.url, frame_tree_node_, is_renderer_initiated,
3345 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), 3345 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(),
3346 entry_id_for_data_nav, params.gesture, 3346 entry_id_for_data_nav, params.gesture,
3347 false); // started_from_context_menu 3347 false); // started_from_context_menu
3348 } 3348 }
3349 3349
3350 } // namespace content 3350 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698