| 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 Demuxer::Demuxer() : host_(NULL) {} | 11 Demuxer::Demuxer() : host_(NULL) {} |
| 12 | 12 |
| 13 Demuxer::~Demuxer() {} | 13 Demuxer::~Demuxer() {} |
| 14 | 14 |
| 15 void Demuxer::set_host(FilterHost* host) { | 15 void Demuxer::set_host(DemuxerHost* host) { |
| 16 DCHECK(host); | 16 DCHECK(host); |
| 17 DCHECK(!host_); | 17 DCHECK(!host_); |
| 18 host_ = host; | 18 host_ = host; |
| 19 } | 19 } |
| 20 | 20 |
| 21 void Demuxer::SetPlaybackRate(float playback_rate) {} | 21 void Demuxer::SetPlaybackRate(float playback_rate) {} |
| 22 | 22 |
| 23 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& callback) { | 23 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& callback) { |
| 24 DCHECK(!callback.is_null()); | 24 DCHECK(!callback.is_null()); |
| 25 callback.Run(PIPELINE_OK); | 25 callback.Run(PIPELINE_OK); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void Demuxer::Stop(const base::Closure& callback) { | 28 void Demuxer::Stop(const base::Closure& callback) { |
| 29 DCHECK(!callback.is_null()); | 29 DCHECK(!callback.is_null()); |
| 30 callback.Run(); | 30 callback.Run(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void Demuxer::OnAudioRendererDisabled() {} | 33 void Demuxer::OnAudioRendererDisabled() {} |
| 34 | 34 |
| 35 } // namespace media | 35 } // namespace media |
| OLD | NEW |