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/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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 #include "content/renderer/render_thread_impl.h" | 118 #include "content/renderer/render_thread_impl.h" |
119 #include "content/renderer/render_view_impl.h" | 119 #include "content/renderer/render_view_impl.h" |
120 #include "content/renderer/render_widget_fullscreen_pepper.h" | 120 #include "content/renderer/render_widget_fullscreen_pepper.h" |
121 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 121 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
122 #include "content/renderer/renderer_webcolorchooser_impl.h" | 122 #include "content/renderer/renderer_webcolorchooser_impl.h" |
123 #include "content/renderer/savable_resources.h" | 123 #include "content/renderer/savable_resources.h" |
124 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" | 124 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" |
125 #include "content/renderer/shared_worker_repository.h" | 125 #include "content/renderer/shared_worker_repository.h" |
126 #include "content/renderer/skia_benchmarking_extension.h" | 126 #include "content/renderer/skia_benchmarking_extension.h" |
127 #include "content/renderer/stats_collection_controller.h" | 127 #include "content/renderer/stats_collection_controller.h" |
128 #include "content/renderer/usb/web_usb_client_impl.h" | |
129 #include "content/renderer/wake_lock/wake_lock_dispatcher.h" | 128 #include "content/renderer/wake_lock/wake_lock_dispatcher.h" |
130 #include "content/renderer/web_frame_utils.h" | 129 #include "content/renderer/web_frame_utils.h" |
131 #include "content/renderer/web_ui_extension.h" | 130 #include "content/renderer/web_ui_extension.h" |
132 #include "content/renderer/websharedworker_proxy.h" | 131 #include "content/renderer/websharedworker_proxy.h" |
133 #include "crypto/sha2.h" | 132 #include "crypto/sha2.h" |
134 #include "gin/modules/module_registry.h" | 133 #include "gin/modules/module_registry.h" |
135 #include "media/audio/audio_output_device.h" | 134 #include "media/audio/audio_output_device.h" |
136 #include "media/base/audio_renderer_mixer_input.h" | 135 #include "media/base/audio_renderer_mixer_input.h" |
137 #include "media/base/cdm_factory.h" | 136 #include "media/base/cdm_factory.h" |
138 #include "media/base/decoder_factory.h" | 137 #include "media/base/decoder_factory.h" |
(...skipping 16 matching lines...) Expand all Loading... |
155 #include "third_party/WebKit/public/platform/WebData.h" | 154 #include "third_party/WebKit/public/platform/WebData.h" |
156 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 155 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
157 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" | 156 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" |
158 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 157 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
159 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" | 158 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" |
160 #include "third_party/WebKit/public/platform/WebString.h" | 159 #include "third_party/WebKit/public/platform/WebString.h" |
161 #include "third_party/WebKit/public/platform/WebURL.h" | 160 #include "third_party/WebKit/public/platform/WebURL.h" |
162 #include "third_party/WebKit/public/platform/WebURLError.h" | 161 #include "third_party/WebKit/public/platform/WebURLError.h" |
163 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 162 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
164 #include "third_party/WebKit/public/platform/WebVector.h" | 163 #include "third_party/WebKit/public/platform/WebVector.h" |
165 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h" | |
166 #include "third_party/WebKit/public/web/WebColorSuggestion.h" | 164 #include "third_party/WebKit/public/web/WebColorSuggestion.h" |
167 #include "third_party/WebKit/public/web/WebDocument.h" | 165 #include "third_party/WebKit/public/web/WebDocument.h" |
168 #include "third_party/WebKit/public/web/WebFindOptions.h" | 166 #include "third_party/WebKit/public/web/WebFindOptions.h" |
169 #include "third_party/WebKit/public/web/WebFrameSerializer.h" | 167 #include "third_party/WebKit/public/web/WebFrameSerializer.h" |
170 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 168 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
171 #include "third_party/WebKit/public/web/WebKit.h" | 169 #include "third_party/WebKit/public/web/WebKit.h" |
172 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 170 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
173 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" | 171 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" |
174 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 172 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
175 #include "third_party/WebKit/public/web/WebPlugin.h" | 173 #include "third_party/WebKit/public/web/WebPlugin.h" |
(...skipping 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4285 // ChildThreadImpl::current() is null in some tests. | 4283 // ChildThreadImpl::current() is null in some tests. |
4286 if (!bluetooth_ && ChildThreadImpl::current()) { | 4284 if (!bluetooth_ && ChildThreadImpl::current()) { |
4287 bluetooth_.reset(new WebBluetoothImpl( | 4285 bluetooth_.reset(new WebBluetoothImpl( |
4288 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(), | 4286 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(), |
4289 routing_id_)); | 4287 routing_id_)); |
4290 } | 4288 } |
4291 | 4289 |
4292 return bluetooth_.get(); | 4290 return bluetooth_.get(); |
4293 } | 4291 } |
4294 | 4292 |
4295 blink::WebUSBClient* RenderFrameImpl::usbClient() { | |
4296 if (!base::FeatureList::IsEnabled(features::kWebUsb)) | |
4297 return nullptr; | |
4298 | |
4299 if (!usb_client_) | |
4300 usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry())); | |
4301 | |
4302 return usb_client_.get(); | |
4303 } | |
4304 | |
4305 #if defined(ENABLE_WEBVR) | 4293 #if defined(ENABLE_WEBVR) |
4306 blink::WebVRClient* RenderFrameImpl::webVRClient() { | 4294 blink::WebVRClient* RenderFrameImpl::webVRClient() { |
4307 if (!vr_dispatcher_) | 4295 if (!vr_dispatcher_) |
4308 vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry())); | 4296 vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry())); |
4309 | 4297 |
4310 return vr_dispatcher_.get(); | 4298 return vr_dispatcher_.get(); |
4311 } | 4299 } |
4312 #endif | 4300 #endif |
4313 | 4301 |
4314 void RenderFrameImpl::didSerializeDataForFrame( | 4302 void RenderFrameImpl::didSerializeDataForFrame( |
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6037 int match_count, | 6025 int match_count, |
6038 int ordinal, | 6026 int ordinal, |
6039 const WebRect& selection_rect, | 6027 const WebRect& selection_rect, |
6040 bool final_status_update) { | 6028 bool final_status_update) { |
6041 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6029 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
6042 selection_rect, ordinal, | 6030 selection_rect, ordinal, |
6043 final_status_update)); | 6031 final_status_update)); |
6044 } | 6032 } |
6045 | 6033 |
6046 } // namespace content | 6034 } // namespace content |
OLD | NEW |