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

Unified Diff: media/audio/audio_output_controller.h

Issue 11413078: Tab Audio Capture: Browser-side connect/disconnect functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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_controller.h
diff --git a/media/audio/audio_output_controller.h b/media/audio/audio_output_controller.h
index 3dae719856508cd6a25e28dc22cd84305a35dd58..5afcc6ebccf97bbb777b8ccbc979aecda84048c3 100644
--- a/media/audio/audio_output_controller.h
+++ b/media/audio/audio_output_controller.h
@@ -63,6 +63,10 @@ class MessageLoop;
namespace media {
+// TODO(miu): STUB
+class DivertedAudioOutputStream : public AudioOutputStream {
+};
+
class MEDIA_EXPORT AudioOutputController
: public base::RefCountedThreadSafe<AudioOutputController>,
public AudioOutputStream::AudioSourceCallback,
@@ -158,6 +162,12 @@ class MEDIA_EXPORT AudioOutputController
// to being called.
virtual void OnDeviceChange() OVERRIDE;
+ // Creates a DivertedAudioOutputStream and diverts audio data to it, away from
+ // the existing AudioOutputStream. The caller owns the returned object. When
+ // the object's destructor is invoked (on the IO thread), the diversion
+ // reverts.
+ DivertedAudioOutputStream* Divert();
Alpha Left Google 2012/11/20 21:49:43 I think this class should be DAOS.
miu 2012/11/21 08:27:48 Yep. The more I think about it, the more we shoul
+
protected:
// Internal state of the source.
enum State {

Powered by Google App Engine
This is Rietveld 408576698