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

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

Issue 9968117: Move Demuxer::set_host() to Initialize(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fixes Created 8 years, 8 months 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
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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() {} 11 DemuxerHost::~DemuxerHost() {}
12 12
13 Demuxer::Demuxer() : host_(NULL) {} 13 Demuxer::Demuxer() {}
14 14
15 Demuxer::~Demuxer() {} 15 Demuxer::~Demuxer() {}
16 16
17 void Demuxer::set_host(DemuxerHost* host) {
18 DCHECK(host);
19 DCHECK(!host_);
20 host_ = host;
21 }
22
23 void Demuxer::SetPlaybackRate(float playback_rate) {} 17 void Demuxer::SetPlaybackRate(float playback_rate) {}
24 18
25 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) { 19 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) {
26 DCHECK(!status_cb.is_null()); 20 DCHECK(!status_cb.is_null());
27 status_cb.Run(PIPELINE_OK); 21 status_cb.Run(PIPELINE_OK);
28 } 22 }
29 23
30 void Demuxer::Stop(const base::Closure& callback) { 24 void Demuxer::Stop(const base::Closure& callback) {
31 DCHECK(!callback.is_null()); 25 DCHECK(!callback.is_null());
32 callback.Run(); 26 callback.Run();
33 } 27 }
34 28
35 void Demuxer::OnAudioRendererDisabled() {} 29 void Demuxer::OnAudioRendererDisabled() {}
36 30
37 } // namespace media 31 } // namespace media
OLDNEW
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698