OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "content/renderer/hyphenator/hyphenator.h" | 33 #include "content/renderer/hyphenator/hyphenator.h" |
34 #include "content/renderer/media/audio_decoder.h" | 34 #include "content/renderer/media/audio_decoder.h" |
35 #include "content/renderer/media/crypto/key_systems.h" | 35 #include "content/renderer/media/crypto/key_systems.h" |
36 #include "content/renderer/media/media_stream_dependency_factory.h" | 36 #include "content/renderer/media/media_stream_dependency_factory.h" |
37 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 37 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
38 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" | 38 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
39 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" | 39 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
40 #include "content/renderer/render_thread_impl.h" | 40 #include "content/renderer/render_thread_impl.h" |
41 #include "content/renderer/renderer_clipboard_client.h" | 41 #include "content/renderer/renderer_clipboard_client.h" |
42 #include "content/renderer/webclipboard_impl.h" | 42 #include "content/renderer/webclipboard_impl.h" |
| 43 #include "content/renderer/webcrypto_impl.h" |
43 #include "content/renderer/websharedworkerrepository_impl.h" | 44 #include "content/renderer/websharedworkerrepository_impl.h" |
44 #include "gpu/config/gpu_info.h" | 45 #include "gpu/config/gpu_info.h" |
45 #include "ipc/ipc_sync_message_filter.h" | 46 #include "ipc/ipc_sync_message_filter.h" |
46 #include "media/audio/audio_output_device.h" | 47 #include "media/audio/audio_output_device.h" |
47 #include "media/base/audio_hardware_config.h" | 48 #include "media/base/audio_hardware_config.h" |
48 #include "media/filters/stream_parser_factory.h" | 49 #include "media/filters/stream_parser_factory.h" |
49 #include "net/base/mime_util.h" | 50 #include "net/base/mime_util.h" |
50 #include "net/base/net_util.h" | 51 #include "net/base/net_util.h" |
51 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 52 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
52 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 53 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 | 1066 |
1066 void RendererWebKitPlatformSupportImpl::setDeviceMotionListener( | 1067 void RendererWebKitPlatformSupportImpl::setDeviceMotionListener( |
1067 WebKit::WebDeviceMotionListener* listener) { | 1068 WebKit::WebDeviceMotionListener* listener) { |
1068 if (!device_motion_event_pump_) { | 1069 if (!device_motion_event_pump_) { |
1069 device_motion_event_pump_.reset(new DeviceMotionEventPump); | 1070 device_motion_event_pump_.reset(new DeviceMotionEventPump); |
1070 device_motion_event_pump_->Attach(RenderThreadImpl::current()); | 1071 device_motion_event_pump_->Attach(RenderThreadImpl::current()); |
1071 } | 1072 } |
1072 device_motion_event_pump_->SetListener(listener); | 1073 device_motion_event_pump_->SetListener(listener); |
1073 } | 1074 } |
1074 | 1075 |
| 1076 //------------------------------------------------------------------------------ |
| 1077 |
| 1078 WebKit::WebCrypto* RendererWebKitPlatformSupportImpl::crypto() { |
| 1079 if (!web_crypto_) |
| 1080 web_crypto_.reset(new WebCryptoImpl()); |
| 1081 return web_crypto_.get(); |
| 1082 |
| 1083 } |
| 1084 |
1075 } // namespace content | 1085 } // namespace content |
OLD | NEW |