summaryrefslogtreecommitdiffstats
path: root/media
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 /media
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 'media')
-rw-r--r--media/base/pipeline.cc2
-rw-r--r--media/base/pipeline.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
index 9a74880..e177e18 100644
--- a/media/base/pipeline.cc
+++ b/media/base/pipeline.cc
@@ -159,7 +159,7 @@ TimeDelta Pipeline::GetMediaTime() const {
return clock_->Elapsed();
}
-Ranges<TimeDelta> Pipeline::GetBufferedTimeRanges() {
+Ranges<TimeDelta> Pipeline::GetBufferedTimeRanges() const {
base::AutoLock auto_lock(lock_);
return buffered_time_ranges_;
}
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index b40a660..06bffba 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -164,7 +164,7 @@ class MEDIA_EXPORT Pipeline : public DemuxerHost {
base::TimeDelta GetMediaTime() const;
// Get approximate time ranges of buffered media.
- Ranges<base::TimeDelta> GetBufferedTimeRanges();
+ Ranges<base::TimeDelta> GetBufferedTimeRanges() const;
// Get the duration of the media in microseconds. If the duration has not
// been determined yet, then returns 0.