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

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

Issue 2788823002: Add the Mojo implementation of authenticator.mojom's MakeCredential. (Closed)
Patch Set: Migreate webauth in components/ and chrome/ to content/ Created 3 years, 5 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "content/browser/renderer_host/input/timeout_monitor.h" 52 #include "content/browser/renderer_host/input/timeout_monitor.h"
53 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" 53 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h"
54 #include "content/browser/renderer_host/render_process_host_impl.h" 54 #include "content/browser/renderer_host/render_process_host_impl.h"
55 #include "content/browser/renderer_host/render_view_host_delegate.h" 55 #include "content/browser/renderer_host/render_view_host_delegate.h"
56 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 56 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
57 #include "content/browser/renderer_host/render_view_host_impl.h" 57 #include "content/browser/renderer_host/render_view_host_impl.h"
58 #include "content/browser/renderer_host/render_widget_host_delegate.h" 58 #include "content/browser/renderer_host/render_widget_host_delegate.h"
59 #include "content/browser/renderer_host/render_widget_host_impl.h" 59 #include "content/browser/renderer_host/render_widget_host_impl.h"
60 #include "content/browser/renderer_host/render_widget_host_view_base.h" 60 #include "content/browser/renderer_host/render_widget_host_view_base.h"
61 #include "content/browser/shared_worker/shared_worker_service_impl.h" 61 #include "content/browser/shared_worker/shared_worker_service_impl.h"
62 #include "content/browser/webauth/authenticator_impl.h"
62 #include "content/browser/websockets/websocket_manager.h" 63 #include "content/browser/websockets/websocket_manager.h"
63 #include "content/browser/webui/url_data_manager_backend.h" 64 #include "content/browser/webui/url_data_manager_backend.h"
64 #include "content/browser/webui/web_ui_controller_factory_registry.h" 65 #include "content/browser/webui/web_ui_controller_factory_registry.h"
65 #include "content/browser/webui/web_ui_url_loader_factory.h" 66 #include "content/browser/webui/web_ui_url_loader_factory.h"
66 #include "content/common/accessibility_messages.h" 67 #include "content/common/accessibility_messages.h"
67 #include "content/common/associated_interface_provider_impl.h" 68 #include "content/common/associated_interface_provider_impl.h"
68 #include "content/common/associated_interface_registry_impl.h" 69 #include "content/common/associated_interface_registry_impl.h"
69 #include "content/common/associated_interfaces.mojom.h" 70 #include "content/common/associated_interfaces.mojom.h"
70 #include "content/common/content_security_policy/content_security_policy.h" 71 #include "content/common/content_security_policy/content_security_policy.h"
71 #include "content/common/frame_messages.h" 72 #include "content/common/frame_messages.h"
(...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2899 2900
2900 GetInterfaceRegistry()->AddInterface( 2901 GetInterfaceRegistry()->AddInterface(
2901 base::Bind(&ForwardShapeDetectionRequest< 2902 base::Bind(&ForwardShapeDetectionRequest<
2902 shape_detection::mojom::BarcodeDetectionRequest>)); 2903 shape_detection::mojom::BarcodeDetectionRequest>));
2903 GetInterfaceRegistry()->AddInterface( 2904 GetInterfaceRegistry()->AddInterface(
2904 base::Bind(&ForwardShapeDetectionRequest< 2905 base::Bind(&ForwardShapeDetectionRequest<
2905 shape_detection::mojom::FaceDetectionProviderRequest>)); 2906 shape_detection::mojom::FaceDetectionProviderRequest>));
2906 GetInterfaceRegistry()->AddInterface( 2907 GetInterfaceRegistry()->AddInterface(
2907 base::Bind(&ForwardShapeDetectionRequest< 2908 base::Bind(&ForwardShapeDetectionRequest<
2908 shape_detection::mojom::TextDetectionRequest>)); 2909 shape_detection::mojom::TextDetectionRequest>));
2910
2911 if (base::FeatureList::IsEnabled(features::kWebAuth)) {
2912 GetInterfaceRegistry()->AddInterface(
2913 base::Bind(&AuthenticatorImpl::Create, base::Unretained(this)));
2914 }
2909 } 2915 }
2910 2916
2911 void RenderFrameHostImpl::ResetWaitingState() { 2917 void RenderFrameHostImpl::ResetWaitingState() {
2912 DCHECK(is_active()); 2918 DCHECK(is_active());
2913 2919
2914 // Whenever we reset the RFH state, we should not be waiting for beforeunload 2920 // Whenever we reset the RFH state, we should not be waiting for beforeunload
2915 // or close acks. We clear them here to be safe, since they can cause 2921 // or close acks. We clear them here to be safe, since they can cause
2916 // navigations to be ignored in OnDidCommitProvisionalLoad. 2922 // navigations to be ignored in OnDidCommitProvisionalLoad.
2917 if (is_waiting_for_beforeunload_ack_) { 2923 if (is_waiting_for_beforeunload_ack_) {
2918 is_waiting_for_beforeunload_ack_ = false; 2924 is_waiting_for_beforeunload_ack_ = false;
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
4142 } 4148 }
4143 4149
4144 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( 4150 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame(
4145 const std::string& interface_name, 4151 const std::string& interface_name,
4146 mojo::ScopedMessagePipeHandle pipe) { 4152 mojo::ScopedMessagePipeHandle pipe) {
4147 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); 4153 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe));
4148 } 4154 }
4149 #endif 4155 #endif
4150 4156
4151 } // namespace content 4157 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698