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

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

Issue 460373002: Remove the last piece of deprecated synchronous IO code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/logging.h" 10 #include "base/logging.h"
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 if (input_device_id.isNull() || 744 if (input_device_id.isNull() ||
745 !base::StringToInt(base::UTF16ToUTF8(input_device_id), &session_id)) { 745 !base::StringToInt(base::UTF16ToUTF8(input_device_id), &session_id)) {
746 if (input_channels > 0) 746 if (input_channels > 0)
747 DLOG(WARNING) << "createAudioDevice(): request for audio input ignored"; 747 DLOG(WARNING) << "createAudioDevice(): request for audio input ignored";
748 748
749 input_channels = 0; 749 input_channels = 0;
750 } 750 }
751 751
752 media::AudioParameters params( 752 media::AudioParameters params(
753 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, 753 media::AudioParameters::AUDIO_PCM_LOW_LATENCY,
754 layout, input_channels, 754 layout, static_cast<int>(sample_rate), 16, buffer_size,
755 static_cast<int>(sample_rate), 16, buffer_size,
756 media::AudioParameters::NO_EFFECTS); 755 media::AudioParameters::NO_EFFECTS);
757 756
758 return new RendererWebAudioDeviceImpl(params, callback, session_id); 757 return new RendererWebAudioDeviceImpl(params, callback, session_id);
759 } 758 }
760 759
761 #if defined(OS_ANDROID) 760 #if defined(OS_ANDROID)
762 bool RendererWebKitPlatformSupportImpl::loadAudioResource( 761 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
763 blink::WebAudioBus* destination_bus, const char* audio_file_data, 762 blink::WebAudioBus* destination_bus, const char* audio_file_data,
764 size_t data_size) { 763 size_t data_size) {
765 return DecodeAudioFileData(destination_bus, 764 return DecodeAudioFileData(destination_bus,
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( 1186 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting(
1188 const blink::WebBatteryStatus& status) { 1187 const blink::WebBatteryStatus& status) {
1189 PlatformEventObserverBase* observer = 1188 PlatformEventObserverBase* observer =
1190 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); 1189 platform_event_observers_.Lookup(blink::WebPlatformEventBattery);
1191 if (!observer) 1190 if (!observer)
1192 return; 1191 return;
1193 observer->SendFakeDataForTesting((void*)&status); 1192 observer->SendFakeDataForTesting((void*)&status);
1194 } 1193 }
1195 1194
1196 } // namespace content 1195 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698