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

Side by Side Diff: media/mojo/services/mojo_demuxer_stream_adapter.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/mojo/services/mojo_demuxer_stream_adapter.h ('k') | media/renderers/renderer_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/mojo/services/mojo_demuxer_stream_adapter.h" 5 #include "media/mojo/services/mojo_demuxer_stream_adapter.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 bool MojoDemuxerStreamAdapter::enabled() const { 73 bool MojoDemuxerStreamAdapter::enabled() const {
74 return true; 74 return true;
75 } 75 }
76 76
77 void MojoDemuxerStreamAdapter::set_enabled(bool enabled, 77 void MojoDemuxerStreamAdapter::set_enabled(bool enabled,
78 base::TimeDelta timestamp) { 78 base::TimeDelta timestamp) {
79 NOTIMPLEMENTED(); 79 NOTIMPLEMENTED();
80 } 80 }
81 81
82 void MojoDemuxerStreamAdapter::SetStreamRestartedCB( 82 void MojoDemuxerStreamAdapter::SetStreamStatusChangeCB(
83 const StreamRestartedCB& cb) { 83 const StreamStatusChangeCB& cb) {
84 NOTIMPLEMENTED(); 84 NOTIMPLEMENTED();
85 } 85 }
86 86
87 // TODO(xhwang): Pass liveness here. 87 // TODO(xhwang): Pass liveness here.
88 void MojoDemuxerStreamAdapter::OnStreamReady( 88 void MojoDemuxerStreamAdapter::OnStreamReady(
89 mojom::DemuxerStream::Type type, 89 mojom::DemuxerStream::Type type,
90 mojo::ScopedDataPipeConsumerHandle consumer_handle, 90 mojo::ScopedDataPipeConsumerHandle consumer_handle,
91 mojom::AudioDecoderConfigPtr audio_config, 91 mojom::AudioDecoderConfigPtr audio_config,
92 mojom::VideoDecoderConfigPtr video_config) { 92 mojom::VideoDecoderConfigPtr video_config) {
93 DVLOG(1) << __FUNCTION__; 93 DVLOG(1) << __FUNCTION__;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 case DemuxerStream::VIDEO: 149 case DemuxerStream::VIDEO:
150 DCHECK(video_config && !audio_config); 150 DCHECK(video_config && !audio_config);
151 video_config_ = video_config.To<VideoDecoderConfig>(); 151 video_config_ = video_config.To<VideoDecoderConfig>();
152 break; 152 break;
153 default: 153 default:
154 NOTREACHED(); 154 NOTREACHED();
155 } 155 }
156 } 156 }
157 157
158 } // namespace media 158 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_demuxer_stream_adapter.h ('k') | media/renderers/renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698