| 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..19b057653bcde480c65ffd4a1e94ff3fe26e9252
|
| --- /dev/null
|
| +++ b/chromecast/media/audio/cast_audio_manager_factory.h
|
| @@ -0,0 +1,41 @@
|
| +// 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 "base/memory/scoped_ptr.h"
|
| +#include "media/audio/audio_manager_factory.h"
|
| +
|
| +namespace chromecast {
|
| +class CastAudioStreamProvider;
|
| +}
|
| +
|
| +namespace media {
|
| +
|
| +// Implementation of media::AudioManagerFactory which creates an instance of
|
| +// CastAudioManager.
|
| +class MEDIA_EXPORT CastAudioManagerFactory : public AudioManagerFactory {
|
| + public:
|
| + // |audio_stream_provider| is used to provide the AudioManager with audio
|
| + // streams. This class does not take ownership of |audio_stream_provider|,
|
| + // which must be non-null and must outlive this factory.
|
| + explicit CastAudioManagerFactory(
|
| + chromecast::CastAudioStreamProvider* audio_stream_provider);
|
| + ~CastAudioManagerFactory() override;
|
| +
|
| + // Creates and returns a CastAudioManager instance. Caller owns the
|
| + // reutrned instance.
|
| + AudioManager* CreateInstance(AudioLogFactory* audio_log_factory) override;
|
| +
|
| + private:
|
| + chromecast::CastAudioStreamProvider* audio_stream_provider_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CastAudioManagerFactory);
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_
|
|
|