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

Side by Side Diff: media/base/fake_demuxer_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_demuxer_stream.h ('k') | media/base/fake_text_track_stream.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 (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 #include "media/base/fake_demuxer_stream.h" 5 #include "media/base/fake_demuxer_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 bool FakeDemuxerStream::enabled() const { 107 bool FakeDemuxerStream::enabled() const {
108 return true; 108 return true;
109 } 109 }
110 110
111 void FakeDemuxerStream::set_enabled(bool enabled, base::TimeDelta timestamp) { 111 void FakeDemuxerStream::set_enabled(bool enabled, base::TimeDelta timestamp) {
112 NOTIMPLEMENTED(); 112 NOTIMPLEMENTED();
113 } 113 }
114 114
115 void FakeDemuxerStream::SetStreamRestartedCB(const StreamRestartedCB& cb) { 115 void FakeDemuxerStream::SetStreamStatusChangeCB(
116 const StreamStatusChangeCB& cb) {
116 NOTIMPLEMENTED(); 117 NOTIMPLEMENTED();
117 } 118 }
118 119
119 void FakeDemuxerStream::HoldNextRead() { 120 void FakeDemuxerStream::HoldNextRead() {
120 DCHECK(task_runner_->BelongsToCurrentThread()); 121 DCHECK(task_runner_->BelongsToCurrentThread());
121 read_to_hold_ = next_read_num_; 122 read_to_hold_ = next_read_num_;
122 } 123 }
123 124
124 void FakeDemuxerStream::HoldNextConfigChangeRead() { 125 void FakeDemuxerStream::HoldNextConfigChangeRead() {
125 DCHECK(task_runner_->BelongsToCurrentThread()); 126 DCHECK(task_runner_->BelongsToCurrentThread());
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 FakeDemuxerStreamProvider::~FakeDemuxerStreamProvider() { 230 FakeDemuxerStreamProvider::~FakeDemuxerStreamProvider() {
230 } 231 }
231 232
232 DemuxerStream* FakeDemuxerStreamProvider::GetStream(DemuxerStream::Type type) { 233 DemuxerStream* FakeDemuxerStreamProvider::GetStream(DemuxerStream::Type type) {
233 if (type == DemuxerStream::Type::AUDIO) 234 if (type == DemuxerStream::Type::AUDIO)
234 return nullptr; 235 return nullptr;
235 return &fake_video_stream_; 236 return &fake_video_stream_;
236 }; 237 };
237 238
238 } // namespace media 239 } // namespace media
OLDNEW
« no previous file with comments | « media/base/fake_demuxer_stream.h ('k') | media/base/fake_text_track_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698