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

Unified Diff: media/audio/audio_output_ipc.h

Issue 1184473002: Add support for the audio-output-device switching IPC mechanism to the renderer lower layers (media… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build dependencies for audio_unittests Created 5 years, 6 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
« no previous file with comments | « media/audio/audio_output_device_unittest.cc ('k') | media/audio/audio_output_stream_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_ipc.h
diff --git a/media/audio/audio_output_ipc.h b/media/audio/audio_output_ipc.h
index 9af1df44efe8aa76992a7063b2422aff83328ddf..211550844648912eba43679478ef3e1bd21a2391 100644
--- a/media/audio/audio_output_ipc.h
+++ b/media/audio/audio_output_ipc.h
@@ -57,6 +57,10 @@ class MEDIA_EXPORT AudioOutputIPCDelegate {
base::SyncSocket::Handle socket_handle,
int length) = 0;
+ // Called when an attempt to switch the output device has been completed
+ virtual void OnOutputDeviceSwitched(int request_id,
+ SwitchOutputDeviceResult result) = 0;
+
// Called when the AudioOutputIPC object is going away and/or when the IPC
// channel has been closed and no more ipc requests can be made.
// Implementations should delete their owned AudioOutputIPC instance
@@ -99,6 +103,11 @@ class MEDIA_EXPORT AudioOutputIPC {
// Sets the volume of the audio stream.
virtual void SetVolume(double volume) = 0;
+
+ // Switches the output device of the audio stream.
+ virtual void SwitchOutputDevice(const std::string& device_id,
+ const GURL& security_origin,
+ int request_id) = 0;
};
} // namespace media
« no previous file with comments | « media/audio/audio_output_device_unittest.cc ('k') | media/audio/audio_output_stream_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698