| 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/web_frame_utils.h" | 128 #include "content/renderer/web_frame_utils.h" |
| 130 #include "content/renderer/web_ui_extension.h" | 129 #include "content/renderer/web_ui_extension.h" |
| 131 #include "content/renderer/websharedworker_proxy.h" | 130 #include "content/renderer/websharedworker_proxy.h" |
| 132 #include "crypto/sha2.h" | 131 #include "crypto/sha2.h" |
| 133 #include "gin/modules/module_registry.h" | 132 #include "gin/modules/module_registry.h" |
| 134 #include "media/audio/audio_output_device.h" | 133 #include "media/audio/audio_output_device.h" |
| 135 #include "media/base/audio_renderer_mixer_input.h" | 134 #include "media/base/audio_renderer_mixer_input.h" |
| 136 #include "media/base/cdm_factory.h" | 135 #include "media/base/cdm_factory.h" |
| 137 #include "media/base/decoder_factory.h" | 136 #include "media/base/decoder_factory.h" |
| 138 #include "media/base/media.h" | 137 #include "media/base/media.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 154 #include "third_party/WebKit/public/platform/WebData.h" | 153 #include "third_party/WebKit/public/platform/WebData.h" |
| 155 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 154 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
| 156 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" | 155 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" |
| 157 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 156 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
| 158 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" | 157 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" |
| 159 #include "third_party/WebKit/public/platform/WebString.h" | 158 #include "third_party/WebKit/public/platform/WebString.h" |
| 160 #include "third_party/WebKit/public/platform/WebURL.h" | 159 #include "third_party/WebKit/public/platform/WebURL.h" |
| 161 #include "third_party/WebKit/public/platform/WebURLError.h" | 160 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 162 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 161 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 163 #include "third_party/WebKit/public/platform/WebVector.h" | 162 #include "third_party/WebKit/public/platform/WebVector.h" |
| 164 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h" | |
| 165 #include "third_party/WebKit/public/web/WebColorSuggestion.h" | 163 #include "third_party/WebKit/public/web/WebColorSuggestion.h" |
| 166 #include "third_party/WebKit/public/web/WebDocument.h" | 164 #include "third_party/WebKit/public/web/WebDocument.h" |
| 167 #include "third_party/WebKit/public/web/WebFindOptions.h" | 165 #include "third_party/WebKit/public/web/WebFindOptions.h" |
| 168 #include "third_party/WebKit/public/web/WebFrameSerializer.h" | 166 #include "third_party/WebKit/public/web/WebFrameSerializer.h" |
| 169 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 167 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
| 170 #include "third_party/WebKit/public/web/WebKit.h" | 168 #include "third_party/WebKit/public/web/WebKit.h" |
| 171 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 169 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 172 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" | 170 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" |
| 173 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 171 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 174 #include "third_party/WebKit/public/web/WebPlugin.h" | 172 #include "third_party/WebKit/public/web/WebPlugin.h" |
| (...skipping 4103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4278 // ChildThreadImpl::current() is null in some tests. | 4276 // ChildThreadImpl::current() is null in some tests. |
| 4279 if (!bluetooth_ && ChildThreadImpl::current()) { | 4277 if (!bluetooth_ && ChildThreadImpl::current()) { |
| 4280 bluetooth_.reset(new WebBluetoothImpl( | 4278 bluetooth_.reset(new WebBluetoothImpl( |
| 4281 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(), | 4279 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(), |
| 4282 routing_id_)); | 4280 routing_id_)); |
| 4283 } | 4281 } |
| 4284 | 4282 |
| 4285 return bluetooth_.get(); | 4283 return bluetooth_.get(); |
| 4286 } | 4284 } |
| 4287 | 4285 |
| 4288 blink::WebUSBClient* RenderFrameImpl::usbClient() { | |
| 4289 if (!base::FeatureList::IsEnabled(features::kWebUsb)) | |
| 4290 return nullptr; | |
| 4291 | |
| 4292 if (!usb_client_) | |
| 4293 usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry())); | |
| 4294 | |
| 4295 return usb_client_.get(); | |
| 4296 } | |
| 4297 | |
| 4298 #if defined(ENABLE_WEBVR) | 4286 #if defined(ENABLE_WEBVR) |
| 4299 blink::WebVRClient* RenderFrameImpl::webVRClient() { | 4287 blink::WebVRClient* RenderFrameImpl::webVRClient() { |
| 4300 if (!vr_dispatcher_) | 4288 if (!vr_dispatcher_) |
| 4301 vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry())); | 4289 vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry())); |
| 4302 | 4290 |
| 4303 return vr_dispatcher_.get(); | 4291 return vr_dispatcher_.get(); |
| 4304 } | 4292 } |
| 4305 #endif | 4293 #endif |
| 4306 | 4294 |
| 4307 void RenderFrameImpl::didSerializeDataForFrame( | 4295 void RenderFrameImpl::didSerializeDataForFrame( |
| (...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6040 int match_count, | 6028 int match_count, |
| 6041 int ordinal, | 6029 int ordinal, |
| 6042 const WebRect& selection_rect, | 6030 const WebRect& selection_rect, |
| 6043 bool final_status_update) { | 6031 bool final_status_update) { |
| 6044 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6032 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6045 selection_rect, ordinal, | 6033 selection_rect, ordinal, |
| 6046 final_status_update)); | 6034 final_status_update)); |
| 6047 } | 6035 } |
| 6048 | 6036 |
| 6049 } // namespace content | 6037 } // namespace content |
| OLD | NEW |