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/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 | 775 |
776 #if defined(OS_ANDROID) | 776 #if defined(OS_ANDROID) |
777 bool RendererWebKitPlatformSupportImpl::loadAudioResource( | 777 bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
778 blink::WebAudioBus* destination_bus, const char* audio_file_data, | 778 blink::WebAudioBus* destination_bus, const char* audio_file_data, |
779 size_t data_size) { | 779 size_t data_size) { |
780 return DecodeAudioFileData(destination_bus, | 780 return DecodeAudioFileData(destination_bus, |
781 audio_file_data, | 781 audio_file_data, |
782 data_size, | 782 data_size, |
783 thread_safe_sender_); | 783 thread_safe_sender_); |
784 } | 784 } |
785 // DEPRECATED | |
786 bool RendererWebKitPlatformSupportImpl::loadAudioResource( | |
787 blink::WebAudioBus* destination_bus, const char* audio_file_data, | |
788 size_t data_size, double sample_rate) { | |
789 return DecodeAudioFileData(destination_bus, | |
790 audio_file_data, | |
791 data_size, | |
792 thread_safe_sender_); | |
793 } | |
794 #else | 785 #else |
795 bool RendererWebKitPlatformSupportImpl::loadAudioResource( | 786 bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
796 blink::WebAudioBus* destination_bus, const char* audio_file_data, | 787 blink::WebAudioBus* destination_bus, const char* audio_file_data, |
797 size_t data_size) { | 788 size_t data_size) { |
798 return DecodeAudioFileData( | 789 return DecodeAudioFileData( |
799 destination_bus, audio_file_data, data_size); | 790 destination_bus, audio_file_data, data_size); |
800 } | 791 } |
801 // DEPRECATED | |
802 bool RendererWebKitPlatformSupportImpl::loadAudioResource( | |
803 blink::WebAudioBus* destination_bus, const char* audio_file_data, | |
804 size_t data_size, double sample_rate) { | |
805 return DecodeAudioFileData( | |
806 destination_bus, audio_file_data, data_size); | |
807 } | |
808 #endif // defined(OS_ANDROID) | 792 #endif // defined(OS_ANDROID) |
809 | 793 |
810 //------------------------------------------------------------------------------ | 794 //------------------------------------------------------------------------------ |
811 | 795 |
812 blink::WebContentDecryptionModule* | 796 blink::WebContentDecryptionModule* |
813 RendererWebKitPlatformSupportImpl::createContentDecryptionModule( | 797 RendererWebKitPlatformSupportImpl::createContentDecryptionModule( |
814 const blink::WebString& key_system) { | 798 const blink::WebString& key_system) { |
815 return WebContentDecryptionModuleImpl::Create(key_system); | 799 return WebContentDecryptionModuleImpl::Create(key_system); |
816 } | 800 } |
817 | 801 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 return; | 1139 return; |
1156 QuotaDispatcher::ThreadSpecificInstance( | 1140 QuotaDispatcher::ThreadSpecificInstance( |
1157 thread_safe_sender_.get(), | 1141 thread_safe_sender_.get(), |
1158 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1142 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
1159 storage_partition, | 1143 storage_partition, |
1160 static_cast<quota::StorageType>(type), | 1144 static_cast<quota::StorageType>(type), |
1161 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1145 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1162 } | 1146 } |
1163 | 1147 |
1164 } // namespace content | 1148 } // namespace content |
OLD | NEW |