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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 1766783003: Expand suspension of idle media players to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notify_pause
Patch Set: Simplify. Created 4 years, 9 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
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 9cba070a829618539b7004c36893bf19ffd18f8d..41774db41537a8afc08da5eef289fbc491ed8469 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -168,8 +168,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
void exitedFullscreen() override;
// WebMediaPlayerDelegate::Observer implementation.
- void OnHidden(bool must_suspend) override;
+ void OnHidden() override;
void OnShown() override;
+ void OnSuspendRequested(bool must_suspend) override;
void OnPlay() override;
void OnPause() override;
void OnVolumeMultiplierUpdate(double multiplier) override;
@@ -285,6 +286,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
void ReportMemoryUsage();
void FinishMemoryUsageReport(int64_t demuxer_memory_usage);
+ // Indicates if automatic resumption of a suspended playback is allowed.
+ bool IsAutomaticResumeAllowed();
+
blink::WebLocalFrame* frame_;
// TODO(hclam): get rid of these members and read from the pipeline directly.

Powered by Google App Engine
This is Rietveld 408576698