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

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

Issue 195043002: Remove unnecassary parameter "sampleRate" for loadAudioResource(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 layout, input_channels, 769 layout, input_channels,
770 static_cast<int>(sample_rate), 16, buffer_size, 770 static_cast<int>(sample_rate), 16, buffer_size,
771 media::AudioParameters::NO_EFFECTS); 771 media::AudioParameters::NO_EFFECTS);
772 772
773 return new RendererWebAudioDeviceImpl(params, callback, session_id); 773 return new RendererWebAudioDeviceImpl(params, callback, session_id);
774 } 774 }
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) {
780 return DecodeAudioFileData(destination_bus,
781 audio_file_data,
782 data_size,
783 thread_safe_sender_);
784 }
785 // DEPRECATED
786 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
787 blink::WebAudioBus* destination_bus, const char* audio_file_data,
779 size_t data_size, double sample_rate) { 788 size_t data_size, double sample_rate) {
780 return DecodeAudioFileData(destination_bus, 789 return DecodeAudioFileData(destination_bus,
781 audio_file_data, 790 audio_file_data,
782 data_size, 791 data_size,
783 sample_rate,
784 thread_safe_sender_); 792 thread_safe_sender_);
785 } 793 }
786 #else 794 #else
787 bool RendererWebKitPlatformSupportImpl::loadAudioResource( 795 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
788 blink::WebAudioBus* destination_bus, const char* audio_file_data, 796 blink::WebAudioBus* destination_bus, const char* audio_file_data,
797 size_t data_size) {
798 return DecodeAudioFileData(
799 destination_bus, audio_file_data, data_size);
800 }
801 // DEPRECATED
802 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
803 blink::WebAudioBus* destination_bus, const char* audio_file_data,
789 size_t data_size, double sample_rate) { 804 size_t data_size, double sample_rate) {
790 return DecodeAudioFileData( 805 return DecodeAudioFileData(
791 destination_bus, audio_file_data, data_size, sample_rate); 806 destination_bus, audio_file_data, data_size);
792 } 807 }
793 #endif // defined(OS_ANDROID) 808 #endif // defined(OS_ANDROID)
794 809
795 //------------------------------------------------------------------------------ 810 //------------------------------------------------------------------------------
796 811
797 blink::WebContentDecryptionModule* 812 blink::WebContentDecryptionModule*
798 RendererWebKitPlatformSupportImpl::createContentDecryptionModule( 813 RendererWebKitPlatformSupportImpl::createContentDecryptionModule(
799 const blink::WebString& key_system) { 814 const blink::WebString& key_system) {
800 return WebContentDecryptionModuleImpl::Create(key_system); 815 return WebContentDecryptionModuleImpl::Create(key_system);
801 } 816 }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 return; 1155 return;
1141 QuotaDispatcher::ThreadSpecificInstance( 1156 QuotaDispatcher::ThreadSpecificInstance(
1142 thread_safe_sender_.get(), 1157 thread_safe_sender_.get(),
1143 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1158 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1144 storage_partition, 1159 storage_partition,
1145 static_cast<quota::StorageType>(type), 1160 static_cast<quota::StorageType>(type),
1146 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1161 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1147 } 1162 }
1148 1163
1149 } // namespace content 1164 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698