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

Side by Side Diff: media/base/fake_demuxer_stream.h

Issue 2199913002: Notify demux stream clients when a stream is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't pass DemuxerStream into the status callback Created 4 years, 4 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
« no previous file with comments | « media/base/demuxer_stream.h ('k') | media/base/fake_demuxer_stream.cc » ('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 (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_BASE_FAKE_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.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"
(...skipping 19 matching lines...) Expand all
30 30
31 // DemuxerStream implementation. 31 // DemuxerStream implementation.
32 void Read(const ReadCB& read_cb) override; 32 void Read(const ReadCB& read_cb) override;
33 AudioDecoderConfig audio_decoder_config() override; 33 AudioDecoderConfig audio_decoder_config() override;
34 VideoDecoderConfig video_decoder_config() override; 34 VideoDecoderConfig video_decoder_config() override;
35 Type type() const override; 35 Type type() const override;
36 bool SupportsConfigChanges() override; 36 bool SupportsConfigChanges() override;
37 VideoRotation video_rotation() override; 37 VideoRotation video_rotation() override;
38 bool enabled() const override; 38 bool enabled() const override;
39 void set_enabled(bool enabled, base::TimeDelta timestamp) override; 39 void set_enabled(bool enabled, base::TimeDelta timestamp) override;
40 void SetStreamRestartedCB(const StreamRestartedCB& cb) override; 40 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override;
41 41
42 void Initialize(); 42 void Initialize();
43 43
44 int num_buffers_returned() const { return num_buffers_returned_; } 44 int num_buffers_returned() const { return num_buffers_returned_; }
45 45
46 // Upon the next read, holds the read callback until SatisfyRead() or Reset() 46 // Upon the next read, holds the read callback until SatisfyRead() or Reset()
47 // is called. 47 // is called.
48 void HoldNextRead(); 48 void HoldNextRead();
49 49
50 // Upon the next config change read, holds the read callback until 50 // Upon the next config change read, holds the read callback until
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 private: 123 private:
124 FakeDemuxerStream fake_video_stream_; 124 FakeDemuxerStream fake_video_stream_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider); 126 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider);
127 }; 127 };
128 128
129 } // namespace media 129 } // namespace media
130 130
131 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 131 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
OLDNEW
« no previous file with comments | « media/base/demuxer_stream.h ('k') | media/base/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698