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

Unified Diff: public/platform/WebMediaPlayer.h

Issue 604823002: Remove default implementation of WebMediaPlayer::seekable() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMediaPlayer.h
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h
index 204eb52b6b444d1da952f6672e3a639a7e707115..80cb8c59c762d04539f6c62b63e391e3d0516918 100644
--- a/public/platform/WebMediaPlayer.h
+++ b/public/platform/WebMediaPlayer.h
@@ -114,17 +114,7 @@ public:
virtual void requestRemotePlaybackControl() { };
virtual void setPreload(Preload) { };
virtual WebTimeRanges buffered() const = 0;
- virtual WebTimeRanges seekable() const
- {
- if (double end = maxTimeSeekable()) {
- WebTimeRanges ranges(static_cast<size_t>(1));
- ranges[0].start = 0.0;
- ranges[0].end = end;
- return ranges;
- }
- return WebTimeRanges();
- }
- virtual double maxTimeSeekable() const { return 0.0; }
+ virtual WebTimeRanges seekable() const = 0;
// True if the loaded media has a playable video/audio track.
virtual bool hasVideo() const = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698