diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-25 21:30:39 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-25 21:30:39 +0000 |
commit | f70f8e1b866fc57b29bd317f40e2453e9c9de2a6 (patch) | |
tree | 97e5590a23675b4d0b6e3186cf3df43154aa7c79 /webkit/glue/webmediaplayer_impl.h | |
parent | d265369f2b05102f44e88b3586562060973ecf48 (diff) | |
download | chromium_src-f70f8e1b866fc57b29bd317f40e2453e9c9de2a6.zip chromium_src-f70f8e1b866fc57b29bd317f40e2453e9c9de2a6.tar.gz chromium_src-f70f8e1b866fc57b29bd317f40e2453e9c9de2a6.tar.bz2 |
Reporting a more accurate buffered time for the video tag
Instead of showing that the entire file is buffered when the video first loads, this uses current time, current bytes, and buffered bytes to estimate buffered time.
Reviewed: http://codereview.chromium.org/2085012/
Submitted for: vrk@chromium.org
BUG=42285
TEST=NONE
Review URL: http://codereview.chromium.org/2192001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.h')
-rw-r--r-- | webkit/glue/webmediaplayer_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h index 3e42793..3bce689 100644 --- a/webkit/glue/webmediaplayer_impl.h +++ b/webkit/glue/webmediaplayer_impl.h @@ -188,6 +188,10 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, virtual void setVisible(bool visible); virtual bool setAutoBuffer(bool autoBuffer); virtual bool totalBytesKnown(); + virtual const WebKit::WebTimeRanges& buffered(); + // This is the prototype for the function we are replacing with the + // non-const version, but we keep it in so that we don't have to do a + // two-sided commit. virtual const WebKit::WebTimeRanges& buffered() const; virtual float maxTimeSeekable() const; |