| 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/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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "content/browser/renderer_host/render_view_host_impl.h" | 52 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 53 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 53 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 54 #include "content/browser/renderer_host/render_widget_host_impl.h" | 54 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 55 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 55 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 56 #include "content/browser/shared_worker/shared_worker_service_impl.h" | 56 #include "content/browser/shared_worker/shared_worker_service_impl.h" |
| 57 #include "content/browser/websockets/websocket_manager.h" | 57 #include "content/browser/websockets/websocket_manager.h" |
| 58 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 58 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 59 #include "content/common/accessibility_messages.h" | 59 #include "content/common/accessibility_messages.h" |
| 60 #include "content/common/associated_interface_provider_impl.h" | 60 #include "content/common/associated_interface_provider_impl.h" |
| 61 #include "content/common/associated_interfaces.mojom.h" | 61 #include "content/common/associated_interfaces.mojom.h" |
| 62 #include "content/common/content_security_policy/csp_policy.h" |
| 62 #include "content/common/frame_messages.h" | 63 #include "content/common/frame_messages.h" |
| 63 #include "content/common/frame_owner_properties.h" | 64 #include "content/common/frame_owner_properties.h" |
| 64 #include "content/common/input_messages.h" | 65 #include "content/common/input_messages.h" |
| 65 #include "content/common/inter_process_time_ticks_converter.h" | 66 #include "content/common/inter_process_time_ticks_converter.h" |
| 66 #include "content/common/navigation_params.h" | 67 #include "content/common/navigation_params.h" |
| 67 #include "content/common/render_message_filter.mojom.h" | 68 #include "content/common/render_message_filter.mojom.h" |
| 68 #include "content/common/renderer.mojom.h" | 69 #include "content/common/renderer.mojom.h" |
| 69 #include "content/common/site_isolation_policy.h" | 70 #include "content/common/site_isolation_policy.h" |
| 70 #include "content/common/swapped_out_messages.h" | 71 #include "content/common/swapped_out_messages.h" |
| 71 #include "content/public/browser/ax_event_notification_details.h" | 72 #include "content/public/browser/ax_event_notification_details.h" |
| (...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 } | 1849 } |
| 1849 | 1850 |
| 1850 void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader( | 1851 void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader( |
| 1851 const ParsedFeaturePolicyHeader& parsed_header) { | 1852 const ParsedFeaturePolicyHeader& parsed_header) { |
| 1852 frame_tree_node()->SetFeaturePolicyHeader(parsed_header); | 1853 frame_tree_node()->SetFeaturePolicyHeader(parsed_header); |
| 1853 ResetFeaturePolicy(); | 1854 ResetFeaturePolicy(); |
| 1854 feature_policy_->SetHeaderPolicy(parsed_header); | 1855 feature_policy_->SetHeaderPolicy(parsed_header); |
| 1855 } | 1856 } |
| 1856 | 1857 |
| 1857 void RenderFrameHostImpl::OnDidAddContentSecurityPolicy( | 1858 void RenderFrameHostImpl::OnDidAddContentSecurityPolicy( |
| 1858 const ContentSecurityPolicyHeader& header) { | 1859 const ContentSecurityPolicyHeader& header, |
| 1859 frame_tree_node()->AddContentSecurityPolicy(header); | 1860 const std::vector<CSPPolicy>& policies) { |
| 1861 frame_tree_node()->AddContentSecurityPolicy(header, policies); |
| 1860 } | 1862 } |
| 1861 | 1863 |
| 1862 void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy( | 1864 void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy( |
| 1863 blink::WebInsecureRequestPolicy policy) { | 1865 blink::WebInsecureRequestPolicy policy) { |
| 1864 frame_tree_node()->SetInsecureRequestPolicy(policy); | 1866 frame_tree_node()->SetInsecureRequestPolicy(policy); |
| 1865 } | 1867 } |
| 1866 | 1868 |
| 1867 void RenderFrameHostImpl::OnUpdateToUniqueOrigin( | 1869 void RenderFrameHostImpl::OnUpdateToUniqueOrigin( |
| 1868 bool is_potentially_trustworthy_unique_origin) { | 1870 bool is_potentially_trustworthy_unique_origin) { |
| 1869 url::Origin origin; | 1871 url::Origin origin; |
| (...skipping 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3506 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3508 // There is no pending NavigationEntry in these cases, so pass 0 as the |
| 3507 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3509 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
| 3508 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3510 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
| 3509 return NavigationHandleImpl::Create( | 3511 return NavigationHandleImpl::Create( |
| 3510 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, | 3512 params.url, params.redirects, frame_tree_node_, is_renderer_initiated, |
| 3511 params.was_within_same_page, base::TimeTicks::Now(), | 3513 params.was_within_same_page, base::TimeTicks::Now(), |
| 3512 entry_id_for_data_nav, false); // started_from_context_menu | 3514 entry_id_for_data_nav, false); // started_from_context_menu |
| 3513 } | 3515 } |
| 3514 | 3516 |
| 3515 } // namespace content | 3517 } // namespace content |
| OLD | NEW |