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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2289543005: Allow suspension prior to reaching kHaveFutureData. (Closed)
Patch Set: Created 4 years, 4 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 | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 7c3da6389a8cadf684fc1fc93365e2a2f8730588..e5e40cc65e804bc9cc12df5fd81baabeeb5c17f2 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -114,6 +114,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
void setPreload(blink::WebMediaPlayer::Preload preload) override;
void setBufferingStrategy(
blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override;
+ void setPlaybackState(
+ blink::WebMediaPlayer::PlaybackState playback_state) override;
blink::WebTimeRanges buffered() const override;
blink::WebTimeRanges seekable() const override;
@@ -541,6 +543,11 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
std::unique_ptr<WatchTimeReporter> watch_time_reporter_;
bool is_encrypted_;
+ // Reflects the playback state of the WebMediaPlayerClient. This will not
+ // match |paused_| or |playback_rate_| when |highest_ready_state_| is less
+ // than WebMediaPlayer::ReadyStateHaveFutureData.
+ WebMediaPlayer::PlaybackState client_playback_state_;
+
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
};
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698