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

Unified Diff: webkit/glue/webmediaplayer_impl.h

Issue 199037: Buffered time ranges for <video> (Closed)
Patch Set: DEPS Created 11 years, 3 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 | « webkit/api/src/WebMediaPlayerClientImpl.cpp ('k') | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webmediaplayer_impl.h
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h
index f6d7fd35faf868d737d124d418f210266355c987..622348425ad25678b00cb533e781fede9beda36c 100644
--- a/webkit/glue/webmediaplayer_impl.h
+++ b/webkit/glue/webmediaplayer_impl.h
@@ -173,7 +173,7 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer,
virtual void setVisible(bool visible);
virtual bool setAutoBuffer(bool autoBuffer);
virtual bool totalBytesKnown();
- virtual float maxTimeBuffered() const;
+ virtual const WebKit::WebTimeRanges& buffered() const;
virtual float maxTimeSeekable() const;
// Methods for painting.
@@ -245,6 +245,9 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer,
WebKit::WebMediaPlayer::NetworkState network_state_;
WebKit::WebMediaPlayer::ReadyState ready_state_;
+ // Keep a list of buffered time ranges.
+ WebKit::WebTimeRanges buffered_;
+
// Message loops for posting tasks between Chrome's main thread. Also used
// for DCHECKs so methods calls won't execute in the wrong thread.
MessageLoop* main_loop_;
« no previous file with comments | « webkit/api/src/WebMediaPlayerClientImpl.cpp ('k') | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698