OLD | NEW |
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 Loading... |
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::SetStreamStatusChangeCB( | |
83 const StreamStatusChangeCB& cb) { | |
84 NOTIMPLEMENTED(); | |
85 } | |
86 | |
87 // TODO(xhwang): Pass liveness here. | 82 // TODO(xhwang): Pass liveness here. |
88 void MojoDemuxerStreamAdapter::OnStreamReady( | 83 void MojoDemuxerStreamAdapter::OnStreamReady( |
89 Type type, | 84 Type type, |
90 mojo::ScopedDataPipeConsumerHandle consumer_handle, | 85 mojo::ScopedDataPipeConsumerHandle consumer_handle, |
91 mojom::AudioDecoderConfigPtr audio_config, | 86 mojom::AudioDecoderConfigPtr audio_config, |
92 mojom::VideoDecoderConfigPtr video_config) { | 87 mojom::VideoDecoderConfigPtr video_config) { |
93 DVLOG(1) << __func__; | 88 DVLOG(1) << __func__; |
94 DCHECK_EQ(UNKNOWN, type_); | 89 DCHECK_EQ(UNKNOWN, type_); |
95 DCHECK(consumer_handle.is_valid()); | 90 DCHECK(consumer_handle.is_valid()); |
96 | 91 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 case VIDEO: | 148 case VIDEO: |
154 DCHECK(video_config && !audio_config); | 149 DCHECK(video_config && !audio_config); |
155 video_config_ = video_config.To<VideoDecoderConfig>(); | 150 video_config_ = video_config.To<VideoDecoderConfig>(); |
156 break; | 151 break; |
157 default: | 152 default: |
158 NOTREACHED(); | 153 NOTREACHED(); |
159 } | 154 } |
160 } | 155 } |
161 | 156 |
162 } // namespace media | 157 } // namespace media |
OLD | NEW |