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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2289543005: Allow suspension prior to reaching kHaveFutureData. (Closed)
Patch Set: Rename to setPaused. 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 3cfa2b7237a4a5aec2802c236cf028b4612be76c..bb48d89dff2218cd8a69745ef53ce851badbd1f4 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -115,6 +115,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
void setPreload(blink::WebMediaPlayer::Preload preload) override;
void setBufferingStrategy(
blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override;
+ void setPaused(bool is_paused) override;
blink::WebTimeRanges buffered() const override;
blink::WebTimeRanges seekable() const override;
@@ -546,6 +547,11 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
int underflow_count_;
std::unique_ptr<base::ElapsedTimer> underflow_timer_;
+ // Reflects the playback state of the WebMediaPlayerClient. This will not
sandersd (OOO until July 31) 2016/08/30 22:41:41 Nit: will not -> may not
DaleCurtis 2016/08/30 22:59:43 Done.
+ // match |paused_| or |playback_rate_| when |highest_ready_state_| is less
+ // than WebMediaPlayer::ReadyStateHaveFutureData.
+ bool is_client_paused_;
+
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