| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/demuxer.h" | 5 #include "media/base/demuxer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 DemuxerHost::~DemuxerHost() {} |
| 12 |
| 11 Demuxer::Demuxer() : host_(NULL) {} | 13 Demuxer::Demuxer() : host_(NULL) {} |
| 12 | 14 |
| 13 Demuxer::~Demuxer() {} | 15 Demuxer::~Demuxer() {} |
| 14 | 16 |
| 15 void Demuxer::set_host(FilterHost* host) { | 17 void Demuxer::set_host(DemuxerHost* host) { |
| 16 DCHECK(host); | 18 DCHECK(host); |
| 17 DCHECK(!host_); | 19 DCHECK(!host_); |
| 18 host_ = host; | 20 host_ = host; |
| 19 } | 21 } |
| 20 | 22 |
| 21 void Demuxer::SetPlaybackRate(float playback_rate) {} | 23 void Demuxer::SetPlaybackRate(float playback_rate) {} |
| 22 | 24 |
| 23 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& callback) { | 25 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& callback) { |
| 24 DCHECK(!callback.is_null()); | 26 DCHECK(!callback.is_null()); |
| 25 callback.Run(PIPELINE_OK); | 27 callback.Run(PIPELINE_OK); |
| 26 } | 28 } |
| 27 | 29 |
| 28 void Demuxer::Stop(const base::Closure& callback) { | 30 void Demuxer::Stop(const base::Closure& callback) { |
| 29 DCHECK(!callback.is_null()); | 31 DCHECK(!callback.is_null()); |
| 30 callback.Run(); | 32 callback.Run(); |
| 31 } | 33 } |
| 32 | 34 |
| 33 void Demuxer::OnAudioRendererDisabled() {} | 35 void Demuxer::OnAudioRendererDisabled() {} |
| 34 | 36 |
| 35 } // namespace media | 37 } // namespace media |
| OLD | NEW |