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

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

Issue 17502007: Move webkit/renderer/media/android/ to content/renderer/media/android/. (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 11 matching lines...) Expand all
22 #include "content/common/file_utilities_messages.h" 22 #include "content/common/file_utilities_messages.h"
23 #include "content/common/gpu/client/context_provider_command_buffer.h" 23 #include "content/common/gpu/client/context_provider_command_buffer.h"
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/audio_decoder.h"
32 #include "content/renderer/media/media_stream_dependency_factory.h" 33 #include "content/renderer/media/media_stream_dependency_factory.h"
33 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 34 #include "content/renderer/media/renderer_webaudiodevice_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"
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 static void RunWebAudioMediaCodec(base::SharedMemoryHandle encoded_data_handle, 737 static void RunWebAudioMediaCodec(base::SharedMemoryHandle encoded_data_handle,
737 base::FileDescriptor pcm_output, 738 base::FileDescriptor pcm_output,
738 uint32_t data_size) { 739 uint32_t data_size) {
739 RenderThread::Get()->Send(new ViewHostMsg_RunWebAudioMediaCodec( 740 RenderThread::Get()->Send(new ViewHostMsg_RunWebAudioMediaCodec(
740 encoded_data_handle, pcm_output, data_size)); 741 encoded_data_handle, pcm_output, data_size));
741 } 742 }
742 743
743 bool RendererWebKitPlatformSupportImpl::loadAudioResource( 744 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
744 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, 745 WebKit::WebAudioBus* destination_bus, const char* audio_file_data,
745 size_t data_size, double sample_rate) { 746 size_t data_size, double sample_rate) {
746 return webkit_media::DecodeAudioFileData( 747 return DecodeAudioFileData(destination_bus,
747 destination_bus, 748 audio_file_data,
748 audio_file_data, 749 data_size,
749 data_size, 750 sample_rate,
750 sample_rate, 751 base::Bind(&RunWebAudioMediaCodec));
751 base::Bind(&RunWebAudioMediaCodec));
752 } 752 }
753 #else 753 #else
754 bool RendererWebKitPlatformSupportImpl::loadAudioResource( 754 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
755 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, 755 WebKit::WebAudioBus* destination_bus, const char* audio_file_data,
756 size_t data_size, double sample_rate) { 756 size_t data_size, double sample_rate) {
757 return webkit_media::DecodeAudioFileData(destination_bus, 757 return webkit_media::DecodeAudioFileData(destination_bus,
758 audio_file_data, 758 audio_file_data,
759 data_size, 759 data_size,
760 sample_rate); 760 sample_rate);
761 } 761 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 945
946 //------------------------------------------------------------------------------ 946 //------------------------------------------------------------------------------
947 947
948 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( 948 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode(
949 const WebKit::WebString& host, 949 const WebKit::WebString& host,
950 const WebKit::WebString& languages) { 950 const WebKit::WebString& languages) {
951 return net::IDNToUnicode(host.utf8(), languages.utf8()); 951 return net::IDNToUnicode(host.utf8(), languages.utf8());
952 } 952 }
953 953
954 } // namespace content 954 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698