Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1811)

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For now disable sending data - fix IPC thread in renderer Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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/media/webcontentdecryptionmodule_impl.h" 35 #include "content/renderer/media/webcontentdecryptionmodule_impl.h"
35 #include "content/renderer/render_thread_impl.h" 36 #include "content/renderer/render_thread_impl.h"
36 #include "content/renderer/renderer_clipboard_client.h" 37 #include "content/renderer/renderer_clipboard_client.h"
37 #include "content/renderer/webclipboard_impl.h" 38 #include "content/renderer/webclipboard_impl.h"
38 #include "content/renderer/websharedworkerrepository_impl.h" 39 #include "content/renderer/websharedworkerrepository_impl.h"
39 #include "googleurl/src/gurl.h" 40 #include "googleurl/src/gurl.h"
40 #include "gpu/config/gpu_info.h" 41 #include "gpu/config/gpu_info.h"
41 #include "ipc/ipc_sync_message_filter.h" 42 #include "ipc/ipc_sync_message_filter.h"
42 #include "media/audio/audio_output_device.h" 43 #include "media/audio/audio_output_device.h"
43 #include "media/base/audio_hardware_config.h" 44 #include "media/base/audio_hardware_config.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "base/file_descriptor_posix.h" 85 #include "base/file_descriptor_posix.h"
85 #endif 86 #endif
86 87
87 using WebKit::WebAudioDevice; 88 using WebKit::WebAudioDevice;
88 using WebKit::WebBlobRegistry; 89 using WebKit::WebBlobRegistry;
89 using WebKit::WebFileInfo; 90 using WebKit::WebFileInfo;
90 using WebKit::WebFileSystem; 91 using WebKit::WebFileSystem;
91 using WebKit::WebFrame; 92 using WebKit::WebFrame;
92 using WebKit::WebGamepads; 93 using WebKit::WebGamepads;
93 using WebKit::WebIDBFactory; 94 using WebKit::WebIDBFactory;
95 using WebKit::WebMIDIAccessor;
94 using WebKit::Platform; 96 using WebKit::Platform;
95 using WebKit::WebMediaStreamCenter; 97 using WebKit::WebMediaStreamCenter;
96 using WebKit::WebMediaStreamCenterClient; 98 using WebKit::WebMediaStreamCenterClient;
97 using WebKit::WebRTCPeerConnectionHandler; 99 using WebKit::WebRTCPeerConnectionHandler;
98 using WebKit::WebRTCPeerConnectionHandlerClient; 100 using WebKit::WebRTCPeerConnectionHandlerClient;
99 using WebKit::WebStorageNamespace; 101 using WebKit::WebStorageNamespace;
100 using WebKit::WebString; 102 using WebKit::WebString;
101 using WebKit::WebURL; 103 using WebKit::WebURL;
102 using WebKit::WebVector; 104 using WebKit::WebVector;
103 105
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 //------------------------------------------------------------------------------ 766 //------------------------------------------------------------------------------
765 767
766 WebKit::WebContentDecryptionModule* 768 WebKit::WebContentDecryptionModule*
767 RendererWebKitPlatformSupportImpl::createContentDecryptionModule( 769 RendererWebKitPlatformSupportImpl::createContentDecryptionModule(
768 const WebKit::WebString& key_system) { 770 const WebKit::WebString& key_system) {
769 return WebContentDecryptionModuleImpl::Create(key_system); 771 return WebContentDecryptionModuleImpl::Create(key_system);
770 } 772 }
771 773
772 //------------------------------------------------------------------------------ 774 //------------------------------------------------------------------------------
773 775
776 WebKit::WebMIDIAccessor*
777 RendererWebKitPlatformSupportImpl::createMIDIAccessor(
778 WebKit::WebMIDIAccessorClient* client) {
779 return new RendererWebMIDIAccessorImpl(client);
780 }
781
782 //------------------------------------------------------------------------------
783
774 WebKit::WebString 784 WebKit::WebString
775 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( 785 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString(
776 unsigned key_size_index, 786 unsigned key_size_index,
777 const WebKit::WebString& challenge, 787 const WebKit::WebString& challenge,
778 const WebKit::WebURL& url) { 788 const WebKit::WebURL& url) {
779 std::string signed_public_key; 789 std::string signed_public_key;
780 RenderThread::Get()->Send(new ViewHostMsg_Keygen( 790 RenderThread::Get()->Send(new ViewHostMsg_Keygen(
781 static_cast<uint32>(key_size_index), 791 static_cast<uint32>(key_size_index),
782 challenge.utf8(), 792 challenge.utf8(),
783 GURL(url), 793 GURL(url),
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 955
946 //------------------------------------------------------------------------------ 956 //------------------------------------------------------------------------------
947 957
948 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( 958 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode(
949 const WebKit::WebString& host, 959 const WebKit::WebString& host,
950 const WebKit::WebString& languages) { 960 const WebKit::WebString& languages) {
951 return net::IDNToUnicode(host.utf8(), languages.utf8()); 961 return net::IDNToUnicode(host.utf8(), languages.utf8());
952 } 962 }
953 963
954 } // namespace content 964 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698