OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_FAKE_DEMUXER_STREAM_H_ | 5 #ifndef MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ |
6 #define MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ | 6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "media/base/audio_decoder_config.h" | 10 #include "media/base/audio_decoder_config.h" |
11 #include "media/base/demuxer_stream.h" | 11 #include "media/base/demuxer_stream.h" |
12 #include "media/base/demuxer_stream_provider.h" | |
12 #include "media/base/video_decoder_config.h" | 13 #include "media/base/video_decoder_config.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class SingleThreadTaskRunner; | 16 class SingleThreadTaskRunner; |
16 } // namespace base | 17 } // namespace base |
17 | 18 |
18 namespace media { | 19 namespace media { |
19 | 20 |
20 class FakeDemuxerStream : public DemuxerStream { | 21 class FakeDemuxerStream : public DemuxerStream { |
21 public: | 22 public: |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 ReadCB read_cb_; | 96 ReadCB read_cb_; |
96 | 97 |
97 int next_read_num_; | 98 int next_read_num_; |
98 // Zero-based number indicating which read operation should be held. -1 means | 99 // Zero-based number indicating which read operation should be held. -1 means |
99 // no read shall be held. | 100 // no read shall be held. |
100 int read_to_hold_; | 101 int read_to_hold_; |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream); | 103 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream); |
103 }; | 104 }; |
104 | 105 |
106 class FakeDemuxerStreamProvider : public DemuxerStreamProvider { | |
107 public: | |
108 FakeDemuxerStreamProvider(int num_video_configs, | |
109 int num_video_buffers_in_one_config, | |
110 bool is_video_encrypted); | |
111 ~FakeDemuxerStreamProvider() override; | |
112 | |
113 DemuxerStream* GetStream(DemuxerStream::Type type) override; | |
xhwang
2015/05/14 22:10:10
// DemuxerStreamProvider implementation.
gunsch
2015/05/14 22:15:09
Done.
| |
114 | |
115 private: | |
116 ::media::FakeDemuxerStream fake_video_stream_; | |
xhwang
2015/05/14 22:10:10
Drop the ::media:: part :)
gunsch
2015/05/14 22:15:09
Done.
| |
117 | |
118 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider); | |
119 }; | |
120 | |
105 } // namespace media | 121 } // namespace media |
106 | 122 |
107 #endif // MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ | 123 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ |
OLD | NEW |