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

Unified Diff: content/renderer/media/audio_message_filter.h

Issue 1122393004: Add support for switching the audio output device for HTMLMediaElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to MediaPlayers so that they invoke callbacks in the correct threads. First complete implem… Created 5 years, 7 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: content/renderer/media/audio_message_filter.h
diff --git a/content/renderer/media/audio_message_filter.h b/content/renderer/media/audio_message_filter.h
index 2404ca0b02676aeec0e0dc6cd3f2ea5d8ed1745e..77b12f236c502581018a15d3189ce784dabb1b37 100644
--- a/content/renderer/media/audio_message_filter.h
+++ b/content/renderer/media/audio_message_filter.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
#define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
+#include "base/callback.h"
#include "base/gtest_prod_util.h"
#include "base/id_map.h"
#include "base/memory/scoped_ptr.h"
@@ -76,6 +77,13 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
void OnStreamStateChanged(int stream_id,
media::AudioOutputIPCDelegate::State state);
+ // Received when the browser process has finished processing a
+ // switch-output-device request
+ void OnOutputDeviceSwitched(
+ int stream_id,
+ int request_id,
+ media::AudioOutputIPCDelegate::DeviceSwitchResult);
+
// IPC sender for Send(); must only be accesed on |io_message_loop_|.
IPC::Sender* sender_;

Powered by Google App Engine
This is Rietveld 408576698