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

Side by Side Diff: media/filters/decoder_selector.h

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
« no previous file with comments | « media/filters/chunk_demuxer.h ('k') | media/filters/fake_video_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_DECODER_SELECTOR_H_ 5 #ifndef MEDIA_FILTERS_DECODER_SELECTOR_H_
6 #define MEDIA_FILTERS_DECODER_SELECTOR_H_ 6 #define MEDIA_FILTERS_DECODER_SELECTOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "media/base/demuxer_stream.h" 16 #include "media/base/demuxer_stream.h"
17 #include "media/base/pipeline_status.h" 17 #include "media/base/pipeline_status.h"
18 #include "media/filters/decoder_stream_traits.h" 18 #include "media/filters/decoder_stream_traits.h"
19 19
20 namespace base { 20 namespace base {
21 class SingleThreadTaskRunner; 21 class SingleThreadTaskRunner;
22 } 22 }
23 23
24 namespace media { 24 namespace media {
25 25
26 class CdmContext; 26 class CdmContext;
27 class DecoderBuffer;
28 class DecryptingDemuxerStream; 27 class DecryptingDemuxerStream;
29 class MediaLog; 28 class MediaLog;
30 29
31 // DecoderSelector (creates if necessary and) initializes the proper 30 // DecoderSelector (creates if necessary and) initializes the proper
32 // Decoder for a given DemuxerStream. If the given DemuxerStream is 31 // Decoder for a given DemuxerStream. If the given DemuxerStream is
33 // encrypted, a DecryptingDemuxerStream may also be created. 32 // encrypted, a DecryptingDemuxerStream may also be created.
34 // The template parameter |StreamType| is the type of stream we will be 33 // The template parameter |StreamType| is the type of stream we will be
35 // selecting a decoder for. 34 // selecting a decoder for.
36 template<DemuxerStream::Type StreamType> 35 template<DemuxerStream::Type StreamType>
37 class MEDIA_EXPORT DecoderSelector { 36 class MEDIA_EXPORT DecoderSelector {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 107
109 DISALLOW_IMPLICIT_CONSTRUCTORS(DecoderSelector); 108 DISALLOW_IMPLICIT_CONSTRUCTORS(DecoderSelector);
110 }; 109 };
111 110
112 typedef DecoderSelector<DemuxerStream::VIDEO> VideoDecoderSelector; 111 typedef DecoderSelector<DemuxerStream::VIDEO> VideoDecoderSelector;
113 typedef DecoderSelector<DemuxerStream::AUDIO> AudioDecoderSelector; 112 typedef DecoderSelector<DemuxerStream::AUDIO> AudioDecoderSelector;
114 113
115 } // namespace media 114 } // namespace media
116 115
117 #endif // MEDIA_FILTERS_DECODER_SELECTOR_H_ 116 #endif // MEDIA_FILTERS_DECODER_SELECTOR_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer.h ('k') | media/filters/fake_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698