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

Side by Side Diff: chromecast/media/audio/cast_audio_manager_factory.h

Issue 1105803002: Exposes a shlib interface for media/audio path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Name refactoring. Created 5 years, 8 months 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 unified diff | Download patch
OLDNEW
(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_;
33
34 DISALLOW_COPY_AND_ASSIGN(CastAudioManagerFactory);
35 };
36
37 } // namespace chromecast
38
39 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698