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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.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/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 } 1764 }
1765 1765
1766 std::string old_name = frame_tree_node()->frame_name(); 1766 std::string old_name = frame_tree_node()->frame_name();
1767 frame_tree_node()->SetFrameName(name, unique_name); 1767 frame_tree_node()->SetFrameName(name, unique_name);
1768 if (old_name.empty() && !name.empty()) 1768 if (old_name.empty() && !name.empty())
1769 frame_tree_node_->render_manager()->CreateProxiesForNewNamedFrame(); 1769 frame_tree_node_->render_manager()->CreateProxiesForNewNamedFrame();
1770 delegate_->DidChangeName(this, name); 1770 delegate_->DidChangeName(this, name);
1771 } 1771 }
1772 1772
1773 void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader( 1773 void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader(
1774 const ParsedFeaturePolicy& parsed_header) { 1774 const ParsedFeaturePolicyHeader& parsed_header) {
1775 frame_tree_node()->SetFeaturePolicyHeader(parsed_header); 1775 frame_tree_node()->SetFeaturePolicyHeader(parsed_header);
1776 } 1776 }
1777 1777
1778 void RenderFrameHostImpl::OnDidAddContentSecurityPolicy( 1778 void RenderFrameHostImpl::OnDidAddContentSecurityPolicy(
1779 const ContentSecurityPolicyHeader& header) { 1779 const ContentSecurityPolicyHeader& header) {
1780 frame_tree_node()->AddContentSecurityPolicy(header); 1780 frame_tree_node()->AddContentSecurityPolicy(header);
1781 } 1781 }
1782 1782
1783 void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy( 1783 void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy(
1784 blink::WebInsecureRequestPolicy policy) { 1784 blink::WebInsecureRequestPolicy policy) {
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
3406 // There is no pending NavigationEntry in these cases, so pass 0 as the 3406 // There is no pending NavigationEntry in these cases, so pass 0 as the
3407 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3407 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3408 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3408 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3409 return NavigationHandleImpl::Create( 3409 return NavigationHandleImpl::Create(
3410 params.url, frame_tree_node_, is_renderer_initiated, 3410 params.url, frame_tree_node_, is_renderer_initiated,
3411 params.was_within_same_page, base::TimeTicks::Now(), 3411 params.was_within_same_page, base::TimeTicks::Now(),
3412 entry_id_for_data_nav, false); // started_from_context_menu 3412 entry_id_for_data_nav, false); // started_from_context_menu
3413 } 3413 }
3414 3414
3415 } // namespace content 3415 } // 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