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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1850023002: Consume Mojo services directly in Blink's WebUSB implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 #include "content/renderer/render_thread_impl.h" 115 #include "content/renderer/render_thread_impl.h"
116 #include "content/renderer/render_view_impl.h" 116 #include "content/renderer/render_view_impl.h"
117 #include "content/renderer/render_widget_fullscreen_pepper.h" 117 #include "content/renderer/render_widget_fullscreen_pepper.h"
118 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 118 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
119 #include "content/renderer/renderer_webcolorchooser_impl.h" 119 #include "content/renderer/renderer_webcolorchooser_impl.h"
120 #include "content/renderer/savable_resources.h" 120 #include "content/renderer/savable_resources.h"
121 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" 121 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h"
122 #include "content/renderer/shared_worker_repository.h" 122 #include "content/renderer/shared_worker_repository.h"
123 #include "content/renderer/skia_benchmarking_extension.h" 123 #include "content/renderer/skia_benchmarking_extension.h"
124 #include "content/renderer/stats_collection_controller.h" 124 #include "content/renderer/stats_collection_controller.h"
125 #include "content/renderer/usb/web_usb_client_impl.h"
126 #include "content/renderer/wake_lock/wake_lock_dispatcher.h" 125 #include "content/renderer/wake_lock/wake_lock_dispatcher.h"
127 #include "content/renderer/web_frame_utils.h" 126 #include "content/renderer/web_frame_utils.h"
128 #include "content/renderer/web_ui_extension.h" 127 #include "content/renderer/web_ui_extension.h"
129 #include "content/renderer/websharedworker_proxy.h" 128 #include "content/renderer/websharedworker_proxy.h"
130 #include "crypto/sha2.h" 129 #include "crypto/sha2.h"
131 #include "gin/modules/module_registry.h" 130 #include "gin/modules/module_registry.h"
132 #include "media/audio/audio_output_device.h" 131 #include "media/audio/audio_output_device.h"
133 #include "media/base/audio_renderer_mixer_input.h" 132 #include "media/base/audio_renderer_mixer_input.h"
134 #include "media/base/cdm_factory.h" 133 #include "media/base/cdm_factory.h"
135 #include "media/base/decoder_factory.h" 134 #include "media/base/decoder_factory.h"
(...skipping 14 matching lines...) Expand all
150 #include "third_party/WebKit/public/platform/URLConversion.h" 149 #include "third_party/WebKit/public/platform/URLConversion.h"
151 #include "third_party/WebKit/public/platform/WebData.h" 150 #include "third_party/WebKit/public/platform/WebData.h"
152 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 151 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
153 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 152 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
154 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 153 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
155 #include "third_party/WebKit/public/platform/WebString.h" 154 #include "third_party/WebKit/public/platform/WebString.h"
156 #include "third_party/WebKit/public/platform/WebURL.h" 155 #include "third_party/WebKit/public/platform/WebURL.h"
157 #include "third_party/WebKit/public/platform/WebURLError.h" 156 #include "third_party/WebKit/public/platform/WebURLError.h"
158 #include "third_party/WebKit/public/platform/WebURLResponse.h" 157 #include "third_party/WebKit/public/platform/WebURLResponse.h"
159 #include "third_party/WebKit/public/platform/WebVector.h" 158 #include "third_party/WebKit/public/platform/WebVector.h"
160 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h"
161 #include "third_party/WebKit/public/web/WebColorSuggestion.h" 159 #include "third_party/WebKit/public/web/WebColorSuggestion.h"
162 #include "third_party/WebKit/public/web/WebDocument.h" 160 #include "third_party/WebKit/public/web/WebDocument.h"
163 #include "third_party/WebKit/public/web/WebFindOptions.h" 161 #include "third_party/WebKit/public/web/WebFindOptions.h"
164 #include "third_party/WebKit/public/web/WebFrameSerializer.h" 162 #include "third_party/WebKit/public/web/WebFrameSerializer.h"
165 #include "third_party/WebKit/public/web/WebFrameWidget.h" 163 #include "third_party/WebKit/public/web/WebFrameWidget.h"
166 #include "third_party/WebKit/public/web/WebKit.h" 164 #include "third_party/WebKit/public/web/WebKit.h"
167 #include "third_party/WebKit/public/web/WebLocalFrame.h" 165 #include "third_party/WebKit/public/web/WebLocalFrame.h"
168 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 166 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
169 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 167 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
170 #include "third_party/WebKit/public/web/WebPlugin.h" 168 #include "third_party/WebKit/public/web/WebPlugin.h"
(...skipping 4111 matching lines...) Expand 10 before | Expand all | Expand 10 after
4282 // ChildThreadImpl::current() is null in some tests. 4280 // ChildThreadImpl::current() is null in some tests.
4283 if (!bluetooth_ && ChildThreadImpl::current()) { 4281 if (!bluetooth_ && ChildThreadImpl::current()) {
4284 bluetooth_.reset(new WebBluetoothImpl( 4282 bluetooth_.reset(new WebBluetoothImpl(
4285 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(), 4283 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(),
4286 routing_id_)); 4284 routing_id_));
4287 } 4285 }
4288 4286
4289 return bluetooth_.get(); 4287 return bluetooth_.get();
4290 } 4288 }
4291 4289
4292 blink::WebUSBClient* RenderFrameImpl::usbClient() {
4293 if (!usb_client_)
4294 usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry()));
4295
4296 return usb_client_.get();
4297 }
4298
4299 #if defined(ENABLE_WEBVR) 4290 #if defined(ENABLE_WEBVR)
4300 blink::WebVRClient* RenderFrameImpl::webVRClient() { 4291 blink::WebVRClient* RenderFrameImpl::webVRClient() {
4301 if (!vr_dispatcher_) 4292 if (!vr_dispatcher_)
4302 vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry())); 4293 vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry()));
4303 4294
4304 return vr_dispatcher_.get(); 4295 return vr_dispatcher_.get();
4305 } 4296 }
4306 #endif 4297 #endif
4307 4298
4308 void RenderFrameImpl::didSerializeDataForFrame( 4299 void RenderFrameImpl::didSerializeDataForFrame(
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
6032 int match_count, 6023 int match_count,
6033 int ordinal, 6024 int ordinal,
6034 const WebRect& selection_rect, 6025 const WebRect& selection_rect,
6035 bool final_status_update) { 6026 bool final_status_update) {
6036 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6027 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6037 selection_rect, ordinal, 6028 selection_rect, ordinal,
6038 final_status_update)); 6029 final_status_update));
6039 } 6030 }
6040 6031
6041 } // namespace content 6032 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698