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

Unified Diff: webkit/glue/media/simple_data_source.h

Issue 155608: Adding callback support to media filter Initialize() and Seek(). (Closed)
Patch Set: Full patch Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/media.gyp ('k') | webkit/glue/media/simple_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/simple_data_source.h
diff --git a/webkit/glue/media/simple_data_source.h b/webkit/glue/media/simple_data_source.h
index 79180348c319f1f9c5a4a9e94ea5da04cdc739f0..8a63df40ea04a2738f24fda881b9e7feb254175c 100644
--- a/webkit/glue/media/simple_data_source.h
+++ b/webkit/glue/media/simple_data_source.h
@@ -38,7 +38,8 @@ class SimpleDataSource : public media::DataSource,
virtual void Stop();
// DataSource implementation.
- virtual bool Initialize(const std::string& url);
+ virtual void Initialize(const std::string& url,
+ media::FilterCallback* callback);
virtual const media::MediaFormat& media_format();
virtual size_t Read(uint8* data, size_t size);
virtual bool GetPosition(int64* position_out);
@@ -104,6 +105,9 @@ class SimpleDataSource : public media::DataSource,
// Used for accessing |state_|.
Lock lock_;
+ // Filter callbacks.
+ scoped_ptr<media::FilterCallback> initialize_callback_;
+
DISALLOW_COPY_AND_ASSIGN(SimpleDataSource);
};
« no previous file with comments | « media/media.gyp ('k') | webkit/glue/media/simple_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698