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

Side by Side Diff: media/base/fake_text_track_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/fake_demuxer_stream.cc ('k') | media/base/fake_text_track_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_TEXT_TRACK_STREAM_H_ 5 #ifndef MEDIA_BASE_FAKE_TEXT_TRACK_STREAM_H_
6 #define MEDIA_BASE_FAKE_TEXT_TRACK_STREAM_H_ 6 #define MEDIA_BASE_FAKE_TEXT_TRACK_STREAM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
(...skipping 13 matching lines...) Expand all
24 // DemuxerStream implementation. 24 // DemuxerStream implementation.
25 void Read(const ReadCB&) override; 25 void Read(const ReadCB&) override;
26 MOCK_METHOD0(audio_decoder_config, AudioDecoderConfig()); 26 MOCK_METHOD0(audio_decoder_config, AudioDecoderConfig());
27 MOCK_METHOD0(video_decoder_config, VideoDecoderConfig()); 27 MOCK_METHOD0(video_decoder_config, VideoDecoderConfig());
28 Type type() const override; 28 Type type() const override;
29 MOCK_METHOD0(EnableBitstreamConverter, void()); 29 MOCK_METHOD0(EnableBitstreamConverter, void());
30 bool SupportsConfigChanges() override; 30 bool SupportsConfigChanges() override;
31 VideoRotation video_rotation() override; 31 VideoRotation video_rotation() override;
32 bool enabled() const override; 32 bool enabled() const override;
33 void set_enabled(bool enabled, base::TimeDelta timestamp) override; 33 void set_enabled(bool enabled, base::TimeDelta timestamp) override;
34 void SetStreamRestartedCB(const StreamRestartedCB& cb) override; 34 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override;
35 35
36 void SatisfyPendingRead(const base::TimeDelta& start, 36 void SatisfyPendingRead(const base::TimeDelta& start,
37 const base::TimeDelta& duration, 37 const base::TimeDelta& duration,
38 const std::string& id, 38 const std::string& id,
39 const std::string& content, 39 const std::string& content,
40 const std::string& settings); 40 const std::string& settings);
41 void AbortPendingRead(); 41 void AbortPendingRead();
42 void SendEosNotification(); 42 void SendEosNotification();
43 43
44 void Stop(); 44 void Stop();
45 45
46 MOCK_METHOD0(OnRead, void()); 46 MOCK_METHOD0(OnRead, void());
47 47
48 private: 48 private:
49 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 49 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
50 ReadCB read_cb_; 50 ReadCB read_cb_;
51 bool stopping_; 51 bool stopping_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(FakeTextTrackStream); 53 DISALLOW_COPY_AND_ASSIGN(FakeTextTrackStream);
54 }; 54 };
55 55
56 } // namespace media 56 } // namespace media
57 57
58 #endif // MEDIA_BASE_FAKE_TEXT_TRACK_STREAM_H_ 58 #endif // MEDIA_BASE_FAKE_TEXT_TRACK_STREAM_H_
OLDNEW
« no previous file with comments | « media/base/fake_demuxer_stream.cc ('k') | media/base/fake_text_track_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698