diff options
author | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 17:47:15 +0000 |
---|---|---|
committer | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 17:47:15 +0000 |
commit | 583634b8cb62af00593258b64680bf6b2358d43d (patch) | |
tree | ff7976bb94f6a607c919293045169c3f235d2fd9 /media/base/pipeline.h | |
parent | dcf6c130ddd91d3349ec503203ea89d1600f2462 (diff) | |
download | chromium_src-583634b8cb62af00593258b64680bf6b2358d43d.zip chromium_src-583634b8cb62af00593258b64680bf6b2358d43d.tar.gz chromium_src-583634b8cb62af00593258b64680bf6b2358d43d.tar.bz2 |
Refactor Pipeline & PipelineImpl so WebMediaPlayerImpl references a Pipeline instead of PipelineImpl
BUG=54110
TEST=PipelineImplTest
Review URL: http://codereview.chromium.org/4664005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/pipeline.h')
-rw-r--r-- | media/base/pipeline.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media/base/pipeline.h b/media/base/pipeline.h index ab08cc4..5b234af 100644 --- a/media/base/pipeline.h +++ b/media/base/pipeline.h @@ -48,6 +48,15 @@ typedef Callback0::Type PipelineCallback; class Pipeline : public base::RefCountedThreadSafe<Pipeline> { public: + // Initializes pipeline. Pipeline takes ownership of all callbacks passed + // into this method. + // |ended_callback| will be executed when the media reaches the end. + // |error_callback_| will be executed upon an error in the pipeline. + // |network_callback_| will be executed when there's a network event. + virtual void Init(PipelineCallback* ended_callback, + PipelineCallback* error_callback, + PipelineCallback* network_callback) = 0; + // Build a pipeline to render the given URL using the given filter collection // to construct a filter chain. Returns true if successful, false otherwise // (i.e., pipeline already started). Note that a return value of true @@ -93,6 +102,9 @@ class Pipeline : public base::RefCountedThreadSafe<Pipeline> { // for a pipeline to be started but not initialized (i.e., an error occurred). virtual bool IsInitialized() const = 0; + // Returns true if there has been network activity. + virtual bool IsNetworkActive() const = 0; + // If the |major_mime_type| exists in the pipeline and is being rendered, this // method will return true. Types are defined in media/base/media_foramt.h. // For example, to determine if a pipeline contains video: |