OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_ | |
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "media/audio/audio_manager_factory.h" | |
10 | |
11 namespace chromecast { | |
12 | |
13 class CastAudioOutputDevice; | |
14 | |
15 // Implementation of media::AudioManagerFactory which creates an instance of | |
16 // CastAudioManager. | |
17 class CastAudioManagerFactory : public media::AudioManagerFactory { | |
18 public: | |
19 // |audio_stream_output_device| is used to provide the AudioManager with audio | |
20 // streams. This class does not take ownership of |audio_stream_output_device| | |
21 // which must be non-null and must outlive this factory. | |
22 explicit CastAudioManagerFactory( | |
23 chromecast::CastAudioOutputDevice* audio_stream_output_device); | |
24 ~CastAudioManagerFactory() override; | |
25 | |
26 // Creates and returns a CastAudioManager instance. Caller owns the | |
27 // reutrned instance. | |
28 media::AudioManager* CreateInstance( | |
29 media::AudioLogFactory* audio_log_factory) override; | |
30 | |
31 private: | |
32 chromecast::CastAudioOutputDevice* audio_stream_output_device_; | |
byungchul
2015/04/27 17:38:06
* const
slan
2015/04/28 00:11:38
Done.
| |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(CastAudioManagerFactory); | |
35 }; | |
36 | |
37 } // namespace chromecast | |
38 | |
39 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_ | |
OLD | NEW |