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

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: 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/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 "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "base/file_descriptor_posix.h" 82 #include "base/file_descriptor_posix.h"
82 #endif 83 #endif
83 84
84 using WebKit::WebAudioDevice; 85 using WebKit::WebAudioDevice;
85 using WebKit::WebBlobRegistry; 86 using WebKit::WebBlobRegistry;
86 using WebKit::WebFileInfo; 87 using WebKit::WebFileInfo;
87 using WebKit::WebFileSystem; 88 using WebKit::WebFileSystem;
88 using WebKit::WebFrame; 89 using WebKit::WebFrame;
89 using WebKit::WebGamepads; 90 using WebKit::WebGamepads;
90 using WebKit::WebIDBFactory; 91 using WebKit::WebIDBFactory;
92 using WebKit::WebMIDIAccessor;
91 using WebKit::Platform; 93 using WebKit::Platform;
92 using WebKit::WebMediaStreamCenter; 94 using WebKit::WebMediaStreamCenter;
93 using WebKit::WebMediaStreamCenterClient; 95 using WebKit::WebMediaStreamCenterClient;
94 using WebKit::WebRTCPeerConnectionHandler; 96 using WebKit::WebRTCPeerConnectionHandler;
95 using WebKit::WebRTCPeerConnectionHandlerClient; 97 using WebKit::WebRTCPeerConnectionHandlerClient;
96 using WebKit::WebStorageNamespace; 98 using WebKit::WebStorageNamespace;
97 using WebKit::WebString; 99 using WebKit::WebString;
98 using WebKit::WebURL; 100 using WebKit::WebURL;
99 using WebKit::WebVector; 101 using WebKit::WebVector;
100 102
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 media::AudioParameters params( 726 media::AudioParameters params(
725 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, 727 media::AudioParameters::AUDIO_PCM_LOW_LATENCY,
726 layout, input_channels, 728 layout, input_channels,
727 static_cast<int>(sample_rate), 16, buffer_size); 729 static_cast<int>(sample_rate), 16, buffer_size);
728 730
729 return new RendererWebAudioDeviceImpl(params, callback, session_id); 731 return new RendererWebAudioDeviceImpl(params, callback, session_id);
730 } 732 }
731 733
732 //------------------------------------------------------------------------------ 734 //------------------------------------------------------------------------------
733 735
736 WebKit::WebMIDIAccessor*
737 RendererWebKitPlatformSupportImpl::createMIDIAccessor(
738 WebKit::WebMIDIAccessor::Client* client) {
739 return new RendererWebMIDIAccessorImpl(client);
740 }
741
742 //------------------------------------------------------------------------------
743
734 WebKit::WebString 744 WebKit::WebString
735 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( 745 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString(
736 unsigned key_size_index, 746 unsigned key_size_index,
737 const WebKit::WebString& challenge, 747 const WebKit::WebString& challenge,
738 const WebKit::WebURL& url) { 748 const WebKit::WebURL& url) {
739 std::string signed_public_key; 749 std::string signed_public_key;
740 RenderThread::Get()->Send(new ViewHostMsg_Keygen( 750 RenderThread::Get()->Send(new ViewHostMsg_Keygen(
741 static_cast<uint32>(key_size_index), 751 static_cast<uint32>(key_size_index),
742 challenge.utf8(), 752 challenge.utf8(),
743 GURL(url), 753 GURL(url),
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 } 907 }
898 908
899 //------------------------------------------------------------------------------ 909 //------------------------------------------------------------------------------
900 910
901 WebKit::WebCompositorSupport* 911 WebKit::WebCompositorSupport*
902 RendererWebKitPlatformSupportImpl::compositorSupport() { 912 RendererWebKitPlatformSupportImpl::compositorSupport() {
903 return &compositor_support_; 913 return &compositor_support_;
904 } 914 }
905 915
906 } // namespace content 916 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698