| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "content/browser/renderer_host/input/timeout_monitor.h" | 53 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 54 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" | 54 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" |
| 55 #include "content/browser/renderer_host/render_process_host_impl.h" | 55 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 56 #include "content/browser/renderer_host/render_view_host_delegate.h" | 56 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 57 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 57 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 58 #include "content/browser/renderer_host/render_view_host_impl.h" | 58 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 59 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 59 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 60 #include "content/browser/renderer_host/render_widget_host_impl.h" | 60 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 61 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 61 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 62 #include "content/browser/shared_worker/shared_worker_service_impl.h" | 62 #include "content/browser/shared_worker/shared_worker_service_impl.h" |
| 63 #include "content/browser/webauth/authenticator_impl.h" |
| 63 #include "content/browser/websockets/websocket_manager.h" | 64 #include "content/browser/websockets/websocket_manager.h" |
| 64 #include "content/browser/webui/url_data_manager_backend.h" | 65 #include "content/browser/webui/url_data_manager_backend.h" |
| 65 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 66 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 66 #include "content/browser/webui/web_ui_url_loader_factory.h" | 67 #include "content/browser/webui/web_ui_url_loader_factory.h" |
| 67 #include "content/common/accessibility_messages.h" | 68 #include "content/common/accessibility_messages.h" |
| 68 #include "content/common/associated_interface_provider_impl.h" | 69 #include "content/common/associated_interface_provider_impl.h" |
| 69 #include "content/common/associated_interface_registry_impl.h" | 70 #include "content/common/associated_interface_registry_impl.h" |
| 70 #include "content/common/associated_interfaces.mojom.h" | 71 #include "content/common/associated_interfaces.mojom.h" |
| 71 #include "content/common/content_security_policy/content_security_policy.h" | 72 #include "content/common/content_security_policy/content_security_policy.h" |
| 72 #include "content/common/frame_messages.h" | 73 #include "content/common/frame_messages.h" |
| (...skipping 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2916 | 2917 |
| 2917 GetInterfaceRegistry()->AddInterface( | 2918 GetInterfaceRegistry()->AddInterface( |
| 2918 base::Bind(&ForwardShapeDetectionRequest< | 2919 base::Bind(&ForwardShapeDetectionRequest< |
| 2919 shape_detection::mojom::BarcodeDetectionRequest>)); | 2920 shape_detection::mojom::BarcodeDetectionRequest>)); |
| 2920 GetInterfaceRegistry()->AddInterface( | 2921 GetInterfaceRegistry()->AddInterface( |
| 2921 base::Bind(&ForwardShapeDetectionRequest< | 2922 base::Bind(&ForwardShapeDetectionRequest< |
| 2922 shape_detection::mojom::FaceDetectionProviderRequest>)); | 2923 shape_detection::mojom::FaceDetectionProviderRequest>)); |
| 2923 GetInterfaceRegistry()->AddInterface( | 2924 GetInterfaceRegistry()->AddInterface( |
| 2924 base::Bind(&ForwardShapeDetectionRequest< | 2925 base::Bind(&ForwardShapeDetectionRequest< |
| 2925 shape_detection::mojom::TextDetectionRequest>)); | 2926 shape_detection::mojom::TextDetectionRequest>)); |
| 2927 |
| 2928 if (base::FeatureList::IsEnabled(features::kWebAuth)) { |
| 2929 GetInterfaceRegistry()->AddInterface( |
| 2930 base::Bind(&AuthenticatorImpl::Create, base::Unretained(this))); |
| 2931 } |
| 2926 } | 2932 } |
| 2927 | 2933 |
| 2928 void RenderFrameHostImpl::ResetWaitingState() { | 2934 void RenderFrameHostImpl::ResetWaitingState() { |
| 2929 DCHECK(is_active()); | 2935 DCHECK(is_active()); |
| 2930 | 2936 |
| 2931 // Whenever we reset the RFH state, we should not be waiting for beforeunload | 2937 // Whenever we reset the RFH state, we should not be waiting for beforeunload |
| 2932 // or close acks. We clear them here to be safe, since they can cause | 2938 // or close acks. We clear them here to be safe, since they can cause |
| 2933 // navigations to be ignored in OnDidCommitProvisionalLoad. | 2939 // navigations to be ignored in OnDidCommitProvisionalLoad. |
| 2934 if (is_waiting_for_beforeunload_ack_) { | 2940 if (is_waiting_for_beforeunload_ack_) { |
| 2935 is_waiting_for_beforeunload_ack_ = false; | 2941 is_waiting_for_beforeunload_ack_ = false; |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4159 } | 4165 } |
| 4160 | 4166 |
| 4161 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( | 4167 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( |
| 4162 const std::string& interface_name, | 4168 const std::string& interface_name, |
| 4163 mojo::ScopedMessagePipeHandle pipe) { | 4169 mojo::ScopedMessagePipeHandle pipe) { |
| 4164 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); | 4170 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); |
| 4165 } | 4171 } |
| 4166 #endif | 4172 #endif |
| 4167 | 4173 |
| 4168 } // namespace content | 4174 } // namespace content |
| OLD | NEW |