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

Side by Side Diff: media/base/fake_text_track_stream.cc

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_text_track_stream.h ('k') | media/base/mock_filters.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 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 #include "media/base/fake_text_track_stream.h" 5 #include "media/base/fake_text_track_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 bool FakeTextTrackStream::enabled() const { 49 bool FakeTextTrackStream::enabled() const {
50 return true; 50 return true;
51 } 51 }
52 52
53 void FakeTextTrackStream::set_enabled(bool enabled, base::TimeDelta timestamp) { 53 void FakeTextTrackStream::set_enabled(bool enabled, base::TimeDelta timestamp) {
54 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
55 } 55 }
56 56
57 void FakeTextTrackStream::SetStreamRestartedCB(const StreamRestartedCB& cb) { 57 void FakeTextTrackStream::SetStreamStatusChangeCB(
58 const StreamStatusChangeCB& cb) {
58 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
59 } 60 }
60 61
61 void FakeTextTrackStream::SatisfyPendingRead( 62 void FakeTextTrackStream::SatisfyPendingRead(
62 const base::TimeDelta& start, 63 const base::TimeDelta& start,
63 const base::TimeDelta& duration, 64 const base::TimeDelta& duration,
64 const std::string& id, 65 const std::string& id,
65 const std::string& content, 66 const std::string& content,
66 const std::string& settings) { 67 const std::string& settings) {
67 DCHECK(!read_cb_.is_null()); 68 DCHECK(!read_cb_.is_null());
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); 101 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer());
101 } 102 }
102 103
103 void FakeTextTrackStream::Stop() { 104 void FakeTextTrackStream::Stop() {
104 stopping_ = true; 105 stopping_ = true;
105 if (!read_cb_.is_null()) 106 if (!read_cb_.is_null())
106 AbortPendingRead(); 107 AbortPendingRead();
107 } 108 }
108 109
109 } // namespace media 110 } // namespace media
OLDNEW
« no previous file with comments | « media/base/fake_text_track_stream.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698