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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 | 677 |
678 unsigned RendererWebKitPlatformSupportImpl::audioHardwareOutputChannels() { | 678 unsigned RendererWebKitPlatformSupportImpl::audioHardwareOutputChannels() { |
679 RenderThreadImpl* thread = RenderThreadImpl::current(); | 679 RenderThreadImpl* thread = RenderThreadImpl::current(); |
680 return thread->GetAudioHardwareConfig()->GetOutputChannels(); | 680 return thread->GetAudioHardwareConfig()->GetOutputChannels(); |
681 } | 681 } |
682 | 682 |
683 WebDatabaseObserver* RendererWebKitPlatformSupportImpl::databaseObserver() { | 683 WebDatabaseObserver* RendererWebKitPlatformSupportImpl::databaseObserver() { |
684 return web_database_observer_impl_.get(); | 684 return web_database_observer_impl_.get(); |
685 } | 685 } |
686 | 686 |
687 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. | |
688 WebAudioDevice* | |
689 RendererWebKitPlatformSupportImpl::createAudioDevice( | |
690 size_t buffer_size, | |
691 unsigned channels, | |
692 double sample_rate, | |
693 WebAudioDevice::RenderCallback* callback) { | |
694 return createAudioDevice( | |
695 buffer_size, 0, channels, sample_rate, callback, "default"); | |
696 } | |
697 | |
698 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. | |
699 WebAudioDevice* | |
700 RendererWebKitPlatformSupportImpl::createAudioDevice( | |
701 size_t buffer_size, | |
702 unsigned input_channels, | |
703 unsigned channels, | |
704 double sample_rate, | |
705 WebAudioDevice::RenderCallback* callback) { | |
706 return createAudioDevice( | |
707 buffer_size, input_channels, channels, sample_rate, callback, "default"); | |
708 } | |
709 | |
710 WebAudioDevice* | 687 WebAudioDevice* |
711 RendererWebKitPlatformSupportImpl::createAudioDevice( | 688 RendererWebKitPlatformSupportImpl::createAudioDevice( |
712 size_t buffer_size, | 689 size_t buffer_size, |
713 unsigned input_channels, | 690 unsigned input_channels, |
714 unsigned channels, | 691 unsigned channels, |
715 double sample_rate, | 692 double sample_rate, |
716 WebAudioDevice::RenderCallback* callback, | 693 WebAudioDevice::RenderCallback* callback, |
717 const blink::WebString& input_device_id) { | 694 const blink::WebString& input_device_id) { |
718 // Use a mock for testing. | 695 // Use a mock for testing. |
719 blink::WebAudioDevice* mock_device = | 696 blink::WebAudioDevice* mock_device = |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 return; | 1133 return; |
1157 QuotaDispatcher::ThreadSpecificInstance( | 1134 QuotaDispatcher::ThreadSpecificInstance( |
1158 thread_safe_sender_.get(), | 1135 thread_safe_sender_.get(), |
1159 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1136 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
1160 storage_partition, | 1137 storage_partition, |
1161 static_cast<quota::StorageType>(type), | 1138 static_cast<quota::StorageType>(type), |
1162 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1139 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1163 } | 1140 } |
1164 | 1141 |
1165 } // namespace content | 1142 } // namespace content |
OLD | NEW |