summaryrefslogtreecommitdiffstats
path: root/content/renderer/media/android/media_source_delegate.cc
diff options
context:
space:
mode:
authorsandersd@chromium.org <sandersd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 00:05:31 +0000
committersandersd@chromium.org <sandersd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 00:05:31 +0000
commit02022fc1935970dfc2690eb150cbb0ab304d54ed (patch)
tree244563e26057baeaa1b9c91278e90caff951bd48 /content/renderer/media/android/media_source_delegate.cc
parenteaf1a7c59154adf8672ccc7942464589e64c34a3 (diff)
downloadchromium_src-02022fc1935970dfc2690eb150cbb0ab304d54ed.zip
chromium_src-02022fc1935970dfc2690eb150cbb0ab304d54ed.tar.gz
chromium_src-02022fc1935970dfc2690eb150cbb0ab304d54ed.tar.bz2
Add return-by-value implementations of blink::WebMediaPlayer::buffered()
This prep work will allow the interface in blink to be changed. Blink change is https://codereview.chromium.org/284143002/. BUG=360254 Review URL: https://codereview.chromium.org/282073003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/media/android/media_source_delegate.cc')
-rw-r--r--content/renderer/media/android/media_source_delegate.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/renderer/media/android/media_source_delegate.cc b/content/renderer/media/android/media_source_delegate.cc
index 6b6523c..bd786b0 100644
--- a/content/renderer/media/android/media_source_delegate.cc
+++ b/content/renderer/media/android/media_source_delegate.cc
@@ -190,6 +190,10 @@ const blink::WebTimeRanges& MediaSourceDelegate::Buffered() {
return buffered_web_time_ranges_;
}
+blink::WebTimeRanges MediaSourceDelegate::Buffered() const {
+ return ConvertToWebTimeRanges(buffered_time_ranges_);
+}
+
size_t MediaSourceDelegate::DecodedFrameCount() const {
return statistics_.video_frames_decoded;
}