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 SERVICES_MEDIA_AUDIO_FWD_DECLS_H__ | |
6 #define SERVICES_MEDIA_AUDIO_FWD_DECLS_H__ | |
7 | |
8 #include <memory> | |
9 #include <set> | |
10 | |
11 namespace mojo { | |
12 namespace media { | |
13 namespace audio { | |
14 | |
15 class AudioOutput; | |
16 class AudioOutputManager; | |
17 class AudioServerImpl; | |
18 class AudioTrackImpl; | |
19 class AudioTrackToOutputLink; | |
20 | |
21 using AudioOutputPtr = std::shared_ptr<AudioOutput>; | |
jeffbrown
2015/11/04 23:43:34
Are we actually taking advantage of the fact that
johngro
2015/11/06 02:20:26
I'm not sure I completely understand your question
| |
22 using AudioOutputSet = std::set<AudioOutputPtr, | |
23 std::owner_less<AudioOutputPtr>>; | |
24 using AudioOutputWeakPtr = std::weak_ptr<AudioOutput>; | |
25 using AudioOutputWeakSet = std::set<AudioOutputWeakPtr, | |
26 std::owner_less<AudioOutputWeakPtr>>; | |
27 | |
28 using AudioTrackImplPtr = std::shared_ptr<AudioTrackImpl>; | |
29 using AudioTrackImplSet = std::set<AudioTrackImplPtr, | |
30 std::owner_less<AudioTrackImplPtr>>; | |
31 using AudioTrackImplWeakPtr = std::weak_ptr<AudioTrackImpl>; | |
32 using AudioTrackImplWeakSet = std::set<AudioTrackImplWeakPtr, | |
33 std::owner_less<AudioTrackImplWeakPtr>>; | |
34 | |
35 using AudioTrackToOutputLinkPtr = std::shared_ptr<AudioTrackToOutputLink>; | |
36 using AudioTrackToOutputLinkSet = | |
37 std::set<AudioTrackToOutputLinkPtr, | |
38 std::owner_less<AudioTrackToOutputLinkPtr>>; | |
39 | |
40 } // namespace audio | |
41 } // namespace media | |
42 } // namespace mojo | |
43 | |
44 #endif // SERVICES_MEDIA_AUDIO_FWD_DECLS_H__ | |
OLD | NEW |