| 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 25 matching lines...) Expand all Loading... |
| 36 #include "content/browser/frame_host/navigator.h" | 36 #include "content/browser/frame_host/navigator.h" |
| 37 #include "content/browser/frame_host/navigator_impl.h" | 37 #include "content/browser/frame_host/navigator_impl.h" |
| 38 #include "content/browser/frame_host/render_frame_host_delegate.h" | 38 #include "content/browser/frame_host/render_frame_host_delegate.h" |
| 39 #include "content/browser/frame_host/render_frame_proxy_host.h" | 39 #include "content/browser/frame_host/render_frame_proxy_host.h" |
| 40 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 40 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| 41 #include "content/browser/installedapp/installed_app_provider_impl_default.h" | 41 #include "content/browser/installedapp/installed_app_provider_impl_default.h" |
| 42 #include "content/browser/keyboard_lock/keyboard_lock_service_impl.h" | 42 #include "content/browser/keyboard_lock/keyboard_lock_service_impl.h" |
| 43 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 43 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 44 #include "content/browser/media/media_interface_proxy.h" | 44 #include "content/browser/media/media_interface_proxy.h" |
| 45 #include "content/browser/media/session/media_session_service_impl.h" | 45 #include "content/browser/media/session/media_session_service_impl.h" |
| 46 #include "content/browser/net/reporting_service_proxy.h" |
| 46 #include "content/browser/permissions/permission_service_context.h" | 47 #include "content/browser/permissions/permission_service_context.h" |
| 47 #include "content/browser/permissions/permission_service_impl.h" | 48 #include "content/browser/permissions/permission_service_impl.h" |
| 48 #include "content/browser/presentation/presentation_service_impl.h" | 49 #include "content/browser/presentation/presentation_service_impl.h" |
| 49 #include "content/browser/renderer_host/dip_util.h" | 50 #include "content/browser/renderer_host/dip_util.h" |
| 50 #include "content/browser/renderer_host/input/input_router_impl.h" | 51 #include "content/browser/renderer_host/input/input_router_impl.h" |
| 51 #include "content/browser/renderer_host/input/timeout_monitor.h" | 52 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 52 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" | 53 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" |
| 53 #include "content/browser/renderer_host/render_process_host_impl.h" | 54 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 54 #include "content/browser/renderer_host/render_view_host_delegate.h" | 55 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 55 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 56 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 56 #include "content/browser/renderer_host/render_view_host_impl.h" | 57 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 57 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 58 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 58 #include "content/browser/renderer_host/render_widget_host_impl.h" | 59 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 59 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 60 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 60 #include "content/browser/shared_worker/shared_worker_service_impl.h" | 61 #include "content/browser/shared_worker/shared_worker_service_impl.h" |
| 61 #include "content/browser/websockets/websocket_manager.h" | 62 #include "content/browser/websockets/websocket_manager.h" |
| 62 #include "content/browser/webui/url_data_manager_backend.h" | 63 #include "content/browser/webui/url_data_manager_backend.h" |
| 63 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 64 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 64 #include "content/browser/webui/web_ui_url_loader_factory.h" | 65 #include "content/browser/webui/web_ui_url_loader_factory.h" |
| 65 #include "content/common/accessibility_messages.h" | 66 #include "content/common/accessibility_messages.h" |
| 66 #include "content/common/associated_interface_provider_impl.h" | 67 #include "content/common/associated_interface_provider_impl.h" |
| 67 #include "content/common/associated_interface_registry_impl.h" | 68 #include "content/common/associated_interface_registry_impl.h" |
| 68 #include "content/common/associated_interfaces.mojom.h" | 69 #include "content/common/associated_interfaces.mojom.h" |
| 69 #include "content/common/content_security_policy/content_security_policy.h" | 70 #include "content/common/content_security_policy/content_security_policy.h" |
| 70 #include "content/common/frame_messages.h" | 71 #include "content/common/frame_messages.h" |
| 71 #include "content/common/frame_owner_properties.h" | 72 #include "content/common/frame_owner_properties.h" |
| 72 #include "content/common/input_messages.h" | 73 #include "content/common/input_messages.h" |
| 73 #include "content/common/inter_process_time_ticks_converter.h" | 74 #include "content/common/inter_process_time_ticks_converter.h" |
| 74 #include "content/common/navigation_params.h" | 75 #include "content/common/navigation_params.h" |
| 76 #include "content/common/net/reporting.mojom.h" |
| 75 #include "content/common/render_message_filter.mojom.h" | 77 #include "content/common/render_message_filter.mojom.h" |
| 76 #include "content/common/renderer.mojom.h" | 78 #include "content/common/renderer.mojom.h" |
| 77 #include "content/common/site_isolation_policy.h" | 79 #include "content/common/site_isolation_policy.h" |
| 78 #include "content/common/swapped_out_messages.h" | 80 #include "content/common/swapped_out_messages.h" |
| 79 #include "content/public/browser/ax_event_notification_details.h" | 81 #include "content/public/browser/ax_event_notification_details.h" |
| 80 #include "content/public/browser/browser_accessibility_state.h" | 82 #include "content/public/browser/browser_accessibility_state.h" |
| 81 #include "content/public/browser/browser_context.h" | 83 #include "content/public/browser/browser_context.h" |
| 82 #include "content/public/browser/browser_plugin_guest_manager.h" | 84 #include "content/public/browser/browser_plugin_guest_manager.h" |
| 83 #include "content/public/browser/browser_thread.h" | 85 #include "content/public/browser/browser_thread.h" |
| 84 #include "content/public/browser/content_browser_client.h" | 86 #include "content/public/browser/content_browser_client.h" |
| (...skipping 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2795 #endif | 2797 #endif |
| 2796 | 2798 |
| 2797 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 2799 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| 2798 GetInterfaceRegistry()->AddInterface(base::Bind( | 2800 GetInterfaceRegistry()->AddInterface(base::Bind( |
| 2799 &RemoterFactoryImpl::Bind, GetProcess()->GetID(), GetRoutingID())); | 2801 &RemoterFactoryImpl::Bind, GetProcess()->GetID(), GetRoutingID())); |
| 2800 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 2802 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| 2801 | 2803 |
| 2802 GetInterfaceRegistry()->AddInterface(base::Bind( | 2804 GetInterfaceRegistry()->AddInterface(base::Bind( |
| 2803 &KeyboardLockServiceImpl::CreateMojoService)); | 2805 &KeyboardLockServiceImpl::CreateMojoService)); |
| 2804 | 2806 |
| 2807 GetInterfaceRegistry()->AddInterface<mojom::ReportingServiceProxy>(base::Bind( |
| 2808 &CreateReportingServiceProxy, base::RetainedRef(site_instance_))); |
| 2809 |
| 2805 GetContentClient()->browser()->ExposeInterfacesToFrame(GetInterfaceRegistry(), | 2810 GetContentClient()->browser()->ExposeInterfacesToFrame(GetInterfaceRegistry(), |
| 2806 this); | 2811 this); |
| 2807 } | 2812 } |
| 2808 | 2813 |
| 2809 void RenderFrameHostImpl::ResetWaitingState() { | 2814 void RenderFrameHostImpl::ResetWaitingState() { |
| 2810 DCHECK(is_active()); | 2815 DCHECK(is_active()); |
| 2811 | 2816 |
| 2812 // Whenever we reset the RFH state, we should not be waiting for beforeunload | 2817 // Whenever we reset the RFH state, we should not be waiting for beforeunload |
| 2813 // or close acks. We clear them here to be safe, since they can cause | 2818 // or close acks. We clear them here to be safe, since they can cause |
| 2814 // navigations to be ignored in OnDidCommitProvisionalLoad. | 2819 // navigations to be ignored in OnDidCommitProvisionalLoad. |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3984 } | 3989 } |
| 3985 | 3990 |
| 3986 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( | 3991 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( |
| 3987 const std::string& interface_name, | 3992 const std::string& interface_name, |
| 3988 mojo::ScopedMessagePipeHandle pipe) { | 3993 mojo::ScopedMessagePipeHandle pipe) { |
| 3989 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); | 3994 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); |
| 3990 } | 3995 } |
| 3991 #endif | 3996 #endif |
| 3992 | 3997 |
| 3993 } // namespace content | 3998 } // namespace content |
| OLD | NEW |