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

Unified Diff: media/audio/audio_output_device.cc

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)
Patch Set: New interface. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/audio_output_device.cc
diff --git a/media/audio/audio_output_device.cc b/media/audio/audio_output_device.cc
index 1d52911686edc6417d1c035e4406272c74596ab5..145d0f69d22a1dc48cf7c802a5cda76d69c5db03 100644
--- a/media/audio/audio_output_device.cc
+++ b/media/audio/audio_output_device.cc
@@ -278,7 +278,7 @@ void AudioOutputDevice::SetVolumeOnIOThread(double volume) {
ipc_->SetVolume(volume);
}
-void AudioOutputDevice::OnStateChanged(AudioOutputIPCDelegateState state) {
+/*void AudioOutputDevice::OnStateChanged(mojom::AudioOutputStreamState state) {
DCHECK(task_runner()->BelongsToCurrentThread());
// Do nothing if the stream has been closed.
@@ -288,10 +288,10 @@ void AudioOutputDevice::OnStateChanged(AudioOutputIPCDelegateState state) {
// TODO(miu): Clean-up inconsistent and incomplete handling here.
// http://crbug.com/180640
switch (state) {
- case AUDIO_OUTPUT_IPC_DELEGATE_STATE_PLAYING:
- case AUDIO_OUTPUT_IPC_DELEGATE_STATE_PAUSED:
+ case mojom::AudioOutputStreamState::PLAYING:
+ case mojom::AudioOutputStreamState::PAUSED:
break;
- case AUDIO_OUTPUT_IPC_DELEGATE_STATE_ERROR:
+ case mojom::AudioOutputStreamState::ERROR:
DLOG(WARNING) << "AudioOutputDevice::OnStateChanged(ERROR)";
// Don't dereference the callback object if the audio thread
// is stopped or stopping. That could mean that the callback
@@ -309,7 +309,7 @@ void AudioOutputDevice::OnStateChanged(AudioOutputIPCDelegateState state) {
NOTREACHED();
break;
}
-}
+}*/
void AudioOutputDevice::OnDeviceAuthorized(
OutputDeviceStatus device_status,

Powered by Google App Engine
This is Rietveld 408576698