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

Side by Side Diff: media/base/demuxer.cc

Issue 8936014: Removing DataSource from Filter hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved preload into a separate file. Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
OLDNEW
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/filter_host.h » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698