| 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::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 Loading... |
| 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 |
| OLD | NEW |