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

Side by Side Diff: webkit/glue/media/web_data_source.h

Issue 7484054: Migrate Pipeline & PipelineImpl to PipelineStatusCB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CR nits Created 9 years, 4 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) 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 #ifndef WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_ 5 #ifndef WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_
6 #define WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_ 6 #define WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_
7 7
8 #include "base/callback_old.h" 8 #include "base/callback_old.h"
9 #include "media/base/filters.h" 9 #include "media/base/filters.h"
10 #include "media/base/pipeline_status.h" 10 #include "media/base/pipeline_status.h"
11 11
12 namespace webkit_glue { 12 namespace webkit_glue {
13 13
14 // An interface that allows WebMediaPlayerImpl::Proxy to communicate with the 14 // An interface that allows WebMediaPlayerImpl::Proxy to communicate with the
15 // DataSource in the pipeline. 15 // DataSource in the pipeline.
16 class WebDataSource : public media::DataSource { 16 class WebDataSource : public media::DataSource {
17 public: 17 public:
18 WebDataSource(); 18 WebDataSource();
19 virtual ~WebDataSource(); 19 virtual ~WebDataSource();
20 20
21 // Initialize this object using |url|. This object calls |callback| when 21 // Initialize this object using |url|. This object calls |callback| when
22 // initialization has completed. 22 // initialization has completed.
23 virtual void Initialize(const std::string& url, 23 virtual void Initialize(const std::string& url,
24 media::PipelineStatusCallback* callback) = 0; 24 const media::PipelineStatusCB& callback) = 0;
25 25
26 // Called to cancel initialization. The callback passed in Initialize() will 26 // Called to cancel initialization. The callback passed in Initialize() will
27 // be destroyed and will not be called after this method returns. Once this 27 // be destroyed and will not be called after this method returns. Once this
28 // method returns, the object will be in an uninitialized state and 28 // method returns, the object will be in an uninitialized state and
29 // Initialize() cannot be called again. The caller is expected to release 29 // Initialize() cannot be called again. The caller is expected to release
30 // its handle to this object and never call it again. 30 // its handle to this object and never call it again.
31 virtual void CancelInitialize() = 0; 31 virtual void CancelInitialize() = 0;
32 32
33 // Returns true if the media resource has a single origin, false otherwise. 33 // Returns true if the media resource has a single origin, false otherwise.
34 // 34 //
(...skipping 15 matching lines...) Expand all
50 // once WebMediaPlayerImpl::Proxy is fixed so it doesn't have to track 50 // once WebMediaPlayerImpl::Proxy is fixed so it doesn't have to track
51 // WebDataSources. Proxy only has to track WebDataSources so it can call Abort() 51 // WebDataSources. Proxy only has to track WebDataSources so it can call Abort()
52 // on them at shutdown. Once cancellation is added to DataSource and pause 52 // on them at shutdown. Once cancellation is added to DataSource and pause
53 // support in Demuxers cancel pending reads, Proxy shouldn't have to keep 53 // support in Demuxers cancel pending reads, Proxy shouldn't have to keep
54 // a WebDataSource list or call Abort(). 54 // a WebDataSource list or call Abort().
55 typedef Callback1<WebDataSource*>::Type WebDataSourceBuildObserverHack; 55 typedef Callback1<WebDataSource*>::Type WebDataSourceBuildObserverHack;
56 56
57 } // namespace webkit_glue 57 } // namespace webkit_glue
58 58
59 #endif // WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_ 59 #endif // WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/simple_data_source_unittest.cc ('k') | webkit/glue/media/web_data_source_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698