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/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 24 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
25 #include "content/common/mime_registry_messages.h" | 25 #include "content/common/mime_registry_messages.h" |
26 #include "content/common/view_messages.h" | 26 #include "content/common/view_messages.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 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
34 #include "content/renderer/render_thread_impl.h" | 35 #include "content/renderer/render_thread_impl.h" |
35 #include "content/renderer/renderer_clipboard_client.h" | 36 #include "content/renderer/renderer_clipboard_client.h" |
36 #include "content/renderer/websharedworkerrepository_impl.h" | 37 #include "content/renderer/websharedworkerrepository_impl.h" |
37 #include "googleurl/src/gurl.h" | 38 #include "googleurl/src/gurl.h" |
38 #include "gpu/config/gpu_info.h" | 39 #include "gpu/config/gpu_info.h" |
39 #include "ipc/ipc_sync_message_filter.h" | 40 #include "ipc/ipc_sync_message_filter.h" |
40 #include "media/audio/audio_output_device.h" | 41 #include "media/audio/audio_output_device.h" |
41 #include "media/base/audio_hardware_config.h" | 42 #include "media/base/audio_hardware_config.h" |
42 #include "net/base/net_util.h" | 43 #include "net/base/net_util.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 #include "base/file_descriptor_posix.h" | 83 #include "base/file_descriptor_posix.h" |
83 #endif | 84 #endif |
84 | 85 |
85 using WebKit::WebAudioDevice; | 86 using WebKit::WebAudioDevice; |
86 using WebKit::WebBlobRegistry; | 87 using WebKit::WebBlobRegistry; |
87 using WebKit::WebFileInfo; | 88 using WebKit::WebFileInfo; |
88 using WebKit::WebFileSystem; | 89 using WebKit::WebFileSystem; |
89 using WebKit::WebFrame; | 90 using WebKit::WebFrame; |
90 using WebKit::WebGamepads; | 91 using WebKit::WebGamepads; |
91 using WebKit::WebIDBFactory; | 92 using WebKit::WebIDBFactory; |
| 93 using WebKit::WebMIDIAccessor; |
92 using WebKit::Platform; | 94 using WebKit::Platform; |
93 using WebKit::WebMediaStreamCenter; | 95 using WebKit::WebMediaStreamCenter; |
94 using WebKit::WebMediaStreamCenterClient; | 96 using WebKit::WebMediaStreamCenterClient; |
95 using WebKit::WebRTCPeerConnectionHandler; | 97 using WebKit::WebRTCPeerConnectionHandler; |
96 using WebKit::WebRTCPeerConnectionHandlerClient; | 98 using WebKit::WebRTCPeerConnectionHandlerClient; |
97 using WebKit::WebStorageNamespace; | 99 using WebKit::WebStorageNamespace; |
98 using WebKit::WebString; | 100 using WebKit::WebString; |
99 using WebKit::WebURL; | 101 using WebKit::WebURL; |
100 using WebKit::WebVector; | 102 using WebKit::WebVector; |
101 | 103 |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 media::AudioParameters params( | 727 media::AudioParameters params( |
726 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, | 728 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, |
727 layout, input_channels, | 729 layout, input_channels, |
728 static_cast<int>(sample_rate), 16, buffer_size); | 730 static_cast<int>(sample_rate), 16, buffer_size); |
729 | 731 |
730 return new RendererWebAudioDeviceImpl(params, callback, session_id); | 732 return new RendererWebAudioDeviceImpl(params, callback, session_id); |
731 } | 733 } |
732 | 734 |
733 //------------------------------------------------------------------------------ | 735 //------------------------------------------------------------------------------ |
734 | 736 |
| 737 WebKit::WebMIDIAccessor* |
| 738 RendererWebKitPlatformSupportImpl::createMIDIAccessor( |
| 739 WebKit::WebMIDIAccessor::Client* client) { |
| 740 return new RendererWebMIDIAccessorImpl(client); |
| 741 } |
| 742 |
| 743 //------------------------------------------------------------------------------ |
| 744 |
735 WebKit::WebString | 745 WebKit::WebString |
736 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( | 746 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( |
737 unsigned key_size_index, | 747 unsigned key_size_index, |
738 const WebKit::WebString& challenge, | 748 const WebKit::WebString& challenge, |
739 const WebKit::WebURL& url) { | 749 const WebKit::WebURL& url) { |
740 std::string signed_public_key; | 750 std::string signed_public_key; |
741 RenderThread::Get()->Send(new ViewHostMsg_Keygen( | 751 RenderThread::Get()->Send(new ViewHostMsg_Keygen( |
742 static_cast<uint32>(key_size_index), | 752 static_cast<uint32>(key_size_index), |
743 challenge.utf8(), | 753 challenge.utf8(), |
744 GURL(url), | 754 GURL(url), |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 | 916 |
907 //------------------------------------------------------------------------------ | 917 //------------------------------------------------------------------------------ |
908 | 918 |
909 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( | 919 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( |
910 const WebKit::WebString& host, | 920 const WebKit::WebString& host, |
911 const WebKit::WebString& languages) { | 921 const WebKit::WebString& languages) { |
912 return net::IDNToUnicode(host.utf8(), languages.utf8()); | 922 return net::IDNToUnicode(host.utf8(), languages.utf8()); |
913 } | 923 } |
914 | 924 |
915 } // namespace content | 925 } // namespace content |
OLD | NEW |