diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 20:24:58 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 20:24:58 +0000 |
commit | 6e8afff24ed38abebc7537d97e1735ede5ca7755 (patch) | |
tree | cfcab05a0bb7b168108744d1353722ab6ba611a5 /media | |
parent | 3b50bd3a2bb00f35e208201b54a1b4d0576c94d9 (diff) | |
download | chromium_src-6e8afff24ed38abebc7537d97e1735ede5ca7755.zip chromium_src-6e8afff24ed38abebc7537d97e1735ede5ca7755.tar.gz chromium_src-6e8afff24ed38abebc7537d97e1735ede5ca7755.tar.bz2 |
Reverting r24002 due to test_shell_tests redness
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/base/filter_host.h | 3 | ||||
-rw-r--r-- | media/base/mock_filter_host.h | 1 | ||||
-rw-r--r-- | media/base/pipeline.h | 4 | ||||
-rw-r--r-- | media/base/pipeline_impl.cc | 12 | ||||
-rw-r--r-- | media/base/pipeline_impl.h | 6 |
5 files changed, 0 insertions, 26 deletions
diff --git a/media/base/filter_host.h b/media/base/filter_host.h index 2b288d2..02ae399 100644 --- a/media/base/filter_host.h +++ b/media/base/filter_host.h @@ -61,9 +61,6 @@ class FilterHost { // endpoints such as renderers. virtual void NotifyEnded() = 0; - // Sets the flag to indicate that our media is now loaded. - virtual void SetLoaded(bool loaded) = 0; - // Broadcast a message of type |message| to all other filters from |source|. virtual void BroadcastMessage(FilterMessage message) = 0; diff --git a/media/base/mock_filter_host.h b/media/base/mock_filter_host.h index dfcf403..439eda8 100644 --- a/media/base/mock_filter_host.h +++ b/media/base/mock_filter_host.h @@ -37,7 +37,6 @@ class MockFilterHost : public FilterHost { MOCK_METHOD1(SetBufferedBytes, void(int64 buffered_bytes)); MOCK_METHOD2(SetVideoSize, void(size_t width, size_t height)); MOCK_METHOD1(SetStreaming, void(bool streamed)); - MOCK_METHOD1(SetLoaded, void(bool loaded)); MOCK_METHOD0(NotifyEnded, void()); MOCK_METHOD1(BroadcastMessage, void(FilterMessage message)); diff --git a/media/base/pipeline.h b/media/base/pipeline.h index dd571c9..b54d442 100644 --- a/media/base/pipeline.h +++ b/media/base/pipeline.h @@ -151,10 +151,6 @@ class Pipeline : public base::RefCountedThreadSafe<Pipeline> { // data source. Seeking may not be possible. virtual bool IsStreaming() const = 0; - // If this method returns true, that means the data source has fully loaded - // the media and that the network is no longer needed. - virtual bool IsLoaded() const = 0; - // Gets the current error status for the pipeline. If the pipeline is // operating correctly, this will return OK. virtual PipelineError GetError() const = 0; diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc index 49ebe4a..270347c 100644 --- a/media/base/pipeline_impl.cc +++ b/media/base/pipeline_impl.cc @@ -262,11 +262,6 @@ bool PipelineImpl::IsStreaming() const { return streaming_; } -bool PipelineImpl::IsLoaded() const { - AutoLock auto_lock(lock_); - return loaded_; -} - PipelineError PipelineImpl::GetError() const { AutoLock auto_lock(lock_); return error_; @@ -292,7 +287,6 @@ void PipelineImpl::ResetState() { buffered_time_ = kZero; buffered_bytes_ = 0; streaming_ = false; - loaded_ = false; total_bytes_ = 0; video_width_ = 0; video_height_ = 0; @@ -411,12 +405,6 @@ void PipelineImpl::NotifyEnded() { NewRunnableMethod(this, &PipelineImpl::NotifyEndedTask)); } -void PipelineImpl::SetLoaded(bool loaded) { - DCHECK(IsRunning()); - AutoLock auto_lock(lock_); - loaded_ = loaded; -} - void PipelineImpl::BroadcastMessage(FilterMessage message) { DCHECK(IsRunning()); diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h index 891404a..c448106 100644 --- a/media/base/pipeline_impl.h +++ b/media/base/pipeline_impl.h @@ -84,7 +84,6 @@ class PipelineImpl : public Pipeline, public FilterHost { virtual int64 GetTotalBytes() const; virtual void GetVideoSize(size_t* width_out, size_t* height_out) const; virtual bool IsStreaming() const; - virtual bool IsLoaded() const; virtual PipelineError GetError() const; // Sets a permanent callback owned by the pipeline that will be executed when @@ -144,7 +143,6 @@ class PipelineImpl : public Pipeline, public FilterHost { virtual void SetBufferedBytes(int64 buffered_bytes); virtual void SetVideoSize(size_t width, size_t height); virtual void SetStreaming(bool streamed); - virtual void SetLoaded(bool loaded); virtual void NotifyEnded(); virtual void BroadcastMessage(FilterMessage message); @@ -295,10 +293,6 @@ class PipelineImpl : public Pipeline, public FilterHost { // source. bool streaming_; - // Sets by the filters to indicate whether the data source is a fully - // loaded source. - bool loaded_; - // Current volume level (from 0.0f to 1.0f). This value is set immediately // via SetVolume() and a task is dispatched on the message loop to notify the // filters. |