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

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: add stub for non-OSX MIDIManagers 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/websharedworkerrepository_impl.h" 38 #include "content/renderer/websharedworkerrepository_impl.h"
38 #include "googleurl/src/gurl.h" 39 #include "googleurl/src/gurl.h"
39 #include "gpu/config/gpu_info.h" 40 #include "gpu/config/gpu_info.h"
40 #include "ipc/ipc_sync_message_filter.h" 41 #include "ipc/ipc_sync_message_filter.h"
41 #include "media/audio/audio_output_device.h" 42 #include "media/audio/audio_output_device.h"
42 #include "media/base/audio_hardware_config.h" 43 #include "media/base/audio_hardware_config.h"
43 #include "net/base/net_util.h" 44 #include "net/base/net_util.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #include "base/file_descriptor_posix.h" 84 #include "base/file_descriptor_posix.h"
84 #endif 85 #endif
85 86
86 using WebKit::WebAudioDevice; 87 using WebKit::WebAudioDevice;
87 using WebKit::WebBlobRegistry; 88 using WebKit::WebBlobRegistry;
88 using WebKit::WebFileInfo; 89 using WebKit::WebFileInfo;
89 using WebKit::WebFileSystem; 90 using WebKit::WebFileSystem;
90 using WebKit::WebFrame; 91 using WebKit::WebFrame;
91 using WebKit::WebGamepads; 92 using WebKit::WebGamepads;
92 using WebKit::WebIDBFactory; 93 using WebKit::WebIDBFactory;
94 using WebKit::WebMIDIAccessor;
93 using WebKit::Platform; 95 using WebKit::Platform;
94 using WebKit::WebMediaStreamCenter; 96 using WebKit::WebMediaStreamCenter;
95 using WebKit::WebMediaStreamCenterClient; 97 using WebKit::WebMediaStreamCenterClient;
96 using WebKit::WebRTCPeerConnectionHandler; 98 using WebKit::WebRTCPeerConnectionHandler;
97 using WebKit::WebRTCPeerConnectionHandlerClient; 99 using WebKit::WebRTCPeerConnectionHandlerClient;
98 using WebKit::WebStorageNamespace; 100 using WebKit::WebStorageNamespace;
99 using WebKit::WebString; 101 using WebKit::WebString;
100 using WebKit::WebURL; 102 using WebKit::WebURL;
101 using WebKit::WebVector; 103 using WebKit::WebVector;
102 104
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 //------------------------------------------------------------------------------ 736 //------------------------------------------------------------------------------
735 737
736 WebKit::WebContentDecryptionModule* 738 WebKit::WebContentDecryptionModule*
737 RendererWebKitPlatformSupportImpl::createContentDecryptionModule( 739 RendererWebKitPlatformSupportImpl::createContentDecryptionModule(
738 const WebKit::WebString& key_system) { 740 const WebKit::WebString& key_system) {
739 return WebContentDecryptionModuleImpl::Create(key_system); 741 return WebContentDecryptionModuleImpl::Create(key_system);
740 } 742 }
741 743
742 //------------------------------------------------------------------------------ 744 //------------------------------------------------------------------------------
743 745
746 WebKit::WebMIDIAccessor*
747 RendererWebKitPlatformSupportImpl::createMIDIAccessor(
748 WebKit::WebMIDIAccessorClient* client) {
749 return new RendererWebMIDIAccessorImpl(client);
750 }
751
752 //------------------------------------------------------------------------------
753
744 WebKit::WebString 754 WebKit::WebString
745 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( 755 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString(
746 unsigned key_size_index, 756 unsigned key_size_index,
747 const WebKit::WebString& challenge, 757 const WebKit::WebString& challenge,
748 const WebKit::WebURL& url) { 758 const WebKit::WebURL& url) {
749 std::string signed_public_key; 759 std::string signed_public_key;
750 RenderThread::Get()->Send(new ViewHostMsg_Keygen( 760 RenderThread::Get()->Send(new ViewHostMsg_Keygen(
751 static_cast<uint32>(key_size_index), 761 static_cast<uint32>(key_size_index),
752 challenge.utf8(), 762 challenge.utf8(),
753 GURL(url), 763 GURL(url),
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 925
916 //------------------------------------------------------------------------------ 926 //------------------------------------------------------------------------------
917 927
918 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( 928 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode(
919 const WebKit::WebString& host, 929 const WebKit::WebString& host,
920 const WebKit::WebString& languages) { 930 const WebKit::WebString& languages) {
921 return net::IDNToUnicode(host.utf8(), languages.utf8()); 931 return net::IDNToUnicode(host.utf8(), languages.utf8());
922 } 932 }
923 933
924 } // namespace content 934 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698