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/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "content/common_child/indexed_db/proxy_webidbfactory_impl.h" | 24 #include "content/common_child/indexed_db/proxy_webidbfactory_impl.h" |
25 #include "content/common_child/npobject_util.h" | 25 #include "content/common_child/npobject_util.h" |
26 #include "content/common_child/webblobregistry_impl.h" | 26 #include "content/common_child/webblobregistry_impl.h" |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/renderer/content_renderer_client.h" | 28 #include "content/public/renderer/content_renderer_client.h" |
29 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 29 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" |
30 #include "content/renderer/gamepad_shared_memory_reader.h" | 30 #include "content/renderer/gamepad_shared_memory_reader.h" |
31 #include "content/renderer/hyphenator/hyphenator.h" | 31 #include "content/renderer/hyphenator/hyphenator.h" |
32 #include "content/renderer/media/media_stream_dependency_factory.h" | 32 #include "content/renderer/media/media_stream_dependency_factory.h" |
33 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 33 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
| 34 |
| 35 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
| 36 |
| 37 |
34 #include "content/renderer/render_thread_impl.h" | 38 #include "content/renderer/render_thread_impl.h" |
35 #include "content/renderer/renderer_clipboard_client.h" | 39 #include "content/renderer/renderer_clipboard_client.h" |
36 #include "content/renderer/websharedworkerrepository_impl.h" | 40 #include "content/renderer/websharedworkerrepository_impl.h" |
37 #include "googleurl/src/gurl.h" | 41 #include "googleurl/src/gurl.h" |
38 #include "gpu/config/gpu_info.h" | 42 #include "gpu/config/gpu_info.h" |
39 #include "ipc/ipc_sync_message_filter.h" | 43 #include "ipc/ipc_sync_message_filter.h" |
40 #include "media/audio/audio_output_device.h" | 44 #include "media/audio/audio_output_device.h" |
41 #include "media/base/audio_hardware_config.h" | 45 #include "media/base/audio_hardware_config.h" |
42 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 46 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
43 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 47 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 #include "base/file_descriptor_posix.h" | 85 #include "base/file_descriptor_posix.h" |
82 #endif | 86 #endif |
83 | 87 |
84 using WebKit::WebAudioDevice; | 88 using WebKit::WebAudioDevice; |
85 using WebKit::WebBlobRegistry; | 89 using WebKit::WebBlobRegistry; |
86 using WebKit::WebFileInfo; | 90 using WebKit::WebFileInfo; |
87 using WebKit::WebFileSystem; | 91 using WebKit::WebFileSystem; |
88 using WebKit::WebFrame; | 92 using WebKit::WebFrame; |
89 using WebKit::WebGamepads; | 93 using WebKit::WebGamepads; |
90 using WebKit::WebIDBFactory; | 94 using WebKit::WebIDBFactory; |
| 95 using WebKit::WebMIDIAccessor; |
91 using WebKit::Platform; | 96 using WebKit::Platform; |
92 using WebKit::WebMediaStreamCenter; | 97 using WebKit::WebMediaStreamCenter; |
93 using WebKit::WebMediaStreamCenterClient; | 98 using WebKit::WebMediaStreamCenterClient; |
94 using WebKit::WebRTCPeerConnectionHandler; | 99 using WebKit::WebRTCPeerConnectionHandler; |
95 using WebKit::WebRTCPeerConnectionHandlerClient; | 100 using WebKit::WebRTCPeerConnectionHandlerClient; |
96 using WebKit::WebStorageNamespace; | 101 using WebKit::WebStorageNamespace; |
97 using WebKit::WebString; | 102 using WebKit::WebString; |
98 using WebKit::WebURL; | 103 using WebKit::WebURL; |
99 using WebKit::WebVector; | 104 using WebKit::WebVector; |
100 | 105 |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 media::AudioParameters params( | 734 media::AudioParameters params( |
730 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, | 735 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, |
731 layout, input_channels, | 736 layout, input_channels, |
732 static_cast<int>(sample_rate), 16, buffer_size); | 737 static_cast<int>(sample_rate), 16, buffer_size); |
733 | 738 |
734 return new RendererWebAudioDeviceImpl(params, callback, session_id); | 739 return new RendererWebAudioDeviceImpl(params, callback, session_id); |
735 } | 740 } |
736 | 741 |
737 //------------------------------------------------------------------------------ | 742 //------------------------------------------------------------------------------ |
738 | 743 |
| 744 WebKit::WebMIDIAccessor* |
| 745 RendererWebKitPlatformSupportImpl::createMIDIAccessor( |
| 746 WebKit::WebMIDIAccessor::Client* client) { |
| 747 return new RendererWebMIDIAccessorImpl(client); |
| 748 } |
| 749 |
| 750 //------------------------------------------------------------------------------ |
| 751 |
739 WebKit::WebString | 752 WebKit::WebString |
740 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( | 753 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( |
741 unsigned key_size_index, | 754 unsigned key_size_index, |
742 const WebKit::WebString& challenge, | 755 const WebKit::WebString& challenge, |
743 const WebKit::WebURL& url) { | 756 const WebKit::WebURL& url) { |
744 std::string signed_public_key; | 757 std::string signed_public_key; |
745 RenderThread::Get()->Send(new ViewHostMsg_Keygen( | 758 RenderThread::Get()->Send(new ViewHostMsg_Keygen( |
746 static_cast<uint32>(key_size_index), | 759 static_cast<uint32>(key_size_index), |
747 challenge.utf8(), | 760 challenge.utf8(), |
748 GURL(url), | 761 GURL(url), |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 } | 915 } |
903 | 916 |
904 //------------------------------------------------------------------------------ | 917 //------------------------------------------------------------------------------ |
905 | 918 |
906 WebKit::WebCompositorSupport* | 919 WebKit::WebCompositorSupport* |
907 RendererWebKitPlatformSupportImpl::compositorSupport() { | 920 RendererWebKitPlatformSupportImpl::compositorSupport() { |
908 return &compositor_support_; | 921 return &compositor_support_; |
909 } | 922 } |
910 | 923 |
911 } // namespace content | 924 } // namespace content |
OLD | NEW |