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

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

Issue 18380: This is the frozen interface definition for the media pipeline, filters, and ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/pipeline_impl.h" 5 #include "media/base/pipeline_impl.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 PipelineImpl::PipelineImpl() : time_(0), duration_(0) {} 9 PipelineImpl::PipelineImpl() {
10 // TODO(ralphl): implement PipelineImpl constructor.
11 NOTIMPLEMENTED();
12 }
10 13
11 PipelineImpl::~PipelineImpl() {} 14 PipelineImpl::~PipelineImpl() {
15 // TODO(ralphl): implement PipelineImpl destructor.
16 NOTIMPLEMENTED();
17 }
12 18
13 bool PipelineImpl::Initialize(FilterFactoryInterface* filter_factory, 19 bool PipelineImpl::IsInitialized() const {
14 const std::string& uri) { 20 // TODO(ralphl): implement IsInitialized.
15 // TODO(scherkus): implement Initialize.
16 NOTIMPLEMENTED(); 21 NOTIMPLEMENTED();
17 return false; 22 return false;
18 } 23 }
19 24
20 bool PipelineImpl::Play() { 25 int64 PipelineImpl::GetDuration() const {
21 // TODO(scherkus): implement Play. 26 // TODO(ralphl): implement GetDuration.
27 NOTIMPLEMENTED();
28 return 0;
29 }
30
31 int64 PipelineImpl::GetBufferedTime() const {
32 // TODO(ralphl): implement GetBufferedTime.
33 NOTIMPLEMENTED();
34 return 0;
35 }
36
37 int64 PipelineImpl::GetTotalBytes() const {
38 // TODO(ralphl): implement GetTotalBytes.
39 NOTIMPLEMENTED();
40 return 0;
41 }
42
43 int64 PipelineImpl::GetBufferedBytes() const {
44 // TODO(ralphl): implement GetBufferedBytes.
45 NOTIMPLEMENTED();
46 return 0;
47 }
48
49 void PipelineImpl::GetVideoSize(size_t* width_out, size_t* height_out) const {
50 // TODO(ralphl): implement GetVideoSize.
51 NOTIMPLEMENTED();
52 width_out = 0;
53 height_out = 0;
54 }
55
56 float PipelineImpl::GetVolume() const {
57 // TODO(ralphl): implement GetVolume.
58 NOTIMPLEMENTED();
59 return 0;
60 }
61
62 float PipelineImpl::GetPlaybackRate() const {
63 // TODO(ralphl): implement GetPlaybackRate.
64 NOTIMPLEMENTED();
65 return 0;
66 }
67
68 int64 PipelineImpl::GetTime() const {
69 // TODO(ralphl): implement GetTime.
70 NOTIMPLEMENTED();
71 return 0;
72 }
73
74 PipelineError PipelineImpl::GetError() const {
75 // TODO(ralphl): implement GetError.
76 NOTIMPLEMENTED();
77 return PIPELINE_ERROR_INITIALIZATION_FAILED;
78 }
79
80 bool PipelineImpl::Start(FilterFactory* filter_factory,
81 const std::string& uri,
82 Callback1<bool>::Type* init_complete_callback) {
83 // TODO(ralphl): implement Start.
22 NOTIMPLEMENTED(); 84 NOTIMPLEMENTED();
23 return false; 85 return false;
24 } 86 }
25 87
26 bool PipelineImpl::Pause() { 88 void PipelineImpl::Stop() {
27 // TODO(scherkus): implement Pause. 89 // TODO(ralphl): implement Stop.
90 NOTIMPLEMENTED();
91 }
92
93 bool PipelineImpl::SetPlaybackRate(float rate) {
94 // TODO(ralphl): implement SetPlaybackRate.
28 NOTIMPLEMENTED(); 95 NOTIMPLEMENTED();
29 return false; 96 return false;
30 } 97 }
31 98
32 bool PipelineImpl::Seek(int64 seek_position) { 99 bool PipelineImpl::Seek(int64 time) {
33 // TODO(scherkus): implement Seek. 100 // TODO(ralphl): implement Seek.
34 NOTIMPLEMENTED(); 101 NOTIMPLEMENTED();
35 return false; 102 return false;
36 } 103 }
37 104
38 void PipelineImpl::Shutdown() { 105 bool PipelineImpl::SetVolume(float volume) {
39 // TODO(scherkus): implement Shutdown. 106 // TODO(ralphl): implement SetVolume.
40 NOTIMPLEMENTED(); 107 NOTIMPLEMENTED();
41 } 108 return false;
42
43 int64 PipelineImpl::GetTime() const {
44 return time_;
45 }
46
47 int64 PipelineImpl::GetDuration() const {
48 return duration_;
49 }
50
51 void PipelineImpl::SetStateChangedCallback(
52 Callback1<PipelineState>::Type* callback) {
53 state_changed_callback_.reset(callback);
54 }
55
56 void PipelineImpl::SetTimeChangedCallback(Callback1<int64>::Type* callback) {
57 time_changed_callback_.reset(callback);
58 } 109 }
59 110
60 } // namespace media 111 } // namespace media
OLDNEW
« media/base/filters.h ('K') | « media/base/pipeline_impl.h ('k') | media/media_lib.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698