| Index: media/base/audio_renderer_sink.h
|
| diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h
|
| index fa1ee84c250a10e16eb0db310b38a31cd555c65c..77569209917639b07ec71514f3ba00d0e85df881 100644
|
| --- a/media/base/audio_renderer_sink.h
|
| +++ b/media/base/audio_renderer_sink.h
|
| @@ -5,13 +5,21 @@
|
| #ifndef MEDIA_BASE_AUDIO_RENDERER_SINK_H_
|
| #define MEDIA_BASE_AUDIO_RENDERER_SINK_H_
|
|
|
| +#include <string>
|
| #include <vector>
|
| +
|
| #include "base/basictypes.h"
|
| #include "base/logging.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "media/audio/audio_parameters.h"
|
| #include "media/base/audio_bus.h"
|
| +#include "media/base/audio_output_device_callback_util.h"
|
| #include "media/base/media_export.h"
|
| +#include "url/gurl.h"
|
| +
|
| +namespace base {
|
| +class SingleThreadTaskRunner;
|
| +}
|
|
|
| namespace media {
|
|
|
| @@ -56,6 +64,15 @@ class AudioRendererSink
|
| // Returns |true| on success.
|
| virtual bool SetVolume(double volume) = 0;
|
|
|
| + // Attempts to switch the audio output device.
|
| + // Once the attempt is finished, the |callback_runner| is invoked with the
|
| + // result of the operation passed as a parameter. The result is a value from
|
| + // the media::SwitchOutputDeviceResult enum.
|
| + virtual void SwitchOutputDevice(
|
| + const std::string& device_id,
|
| + const GURL& security_origin,
|
| + scoped_ptr<SwitchOutputDeviceCallbackRunner> callback_runner) = 0;
|
| +
|
| protected:
|
| friend class base::RefCountedThreadSafe<AudioRendererSink>;
|
| virtual ~AudioRendererSink() {}
|
|
|