| Index: chromecast/media/audio/cast_audio_manager_factory.h
|
| diff --git a/chromecast/media/audio/cast_audio_manager_factory.h b/chromecast/media/audio/cast_audio_manager_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..aa2931e5f8846c2ff63cef5c87b643007ec38509
|
| --- /dev/null
|
| +++ b/chromecast/media/audio/cast_audio_manager_factory.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_
|
| +#define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "media/audio/audio_manager_factory.h"
|
| +
|
| +namespace chromecast {
|
| +namespace media {
|
| +
|
| +class CastAudioOutputDevice;
|
| +
|
| +// Implementation of ::media::AudioManagerFactory which creates an instance of
|
| +// CastAudioManager, which acts as a proxy to the platform implementation of
|
| +// CastAudioOutputDevice.
|
| +class CastAudioManagerFactory : public ::media::AudioManagerFactory {
|
| + public:
|
| + CastAudioManagerFactory();
|
| + ~CastAudioManagerFactory() override;
|
| +
|
| + // Creates and returns a CastAudioManager instance. Caller owns the
|
| + // reutrned instance.
|
| + ::media::AudioManager* CreateInstance(
|
| + ::media::AudioLogFactory* audio_log_factory) override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(CastAudioManagerFactory);
|
| +};
|
| +
|
| +} // namespace media
|
| +} // namespace chromecast
|
| +
|
| +#endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_
|
|
|