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

Unified Diff: webkit/media/buffered_data_source.h

Issue 10535101: Replace Pipeline::SetNetworkActivity() with BufferedDataSource -> WebMediaPlayerImpl callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/tools/seek_tester/seek_tester.cc ('k') | webkit/media/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/buffered_data_source.h
diff --git a/webkit/media/buffered_data_source.h b/webkit/media/buffered_data_source.h
index f151c5a95e3eff290f81a3c0055e1cdcf5751fa1..15471b2838169d0f980e974a9d3d38e8fd0e097c 100644
--- a/webkit/media/buffered_data_source.h
+++ b/webkit/media/buffered_data_source.h
@@ -31,9 +31,14 @@ namespace webkit_media {
// before being passed to other threads. It may be deleted on any thread.
class BufferedDataSource : public media::DataSource {
public:
+ typedef base::Callback<void(bool)> DownloadingCB;
+
+ // |downloading_cb| will be called whenever the downloading/paused state of
+ // the source changes.
BufferedDataSource(MessageLoop* render_loop,
WebKit::WebFrame* frame,
- media::MediaLog* media_log);
+ media::MediaLog* media_log,
+ const DownloadingCB& downloading_cb);
// Initialize this object using |url| and |cors_mode|, and call |status_cb|
// when initialization has completed.
@@ -224,6 +229,8 @@ class BufferedDataSource : public media::DataSource {
scoped_refptr<media::MediaLog> media_log_;
+ DownloadingCB downloading_cb_;
+
DISALLOW_COPY_AND_ASSIGN(BufferedDataSource);
};
« no previous file with comments | « media/tools/seek_tester/seek_tester.cc ('k') | webkit/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698