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

Unified Diff: media/blink/webmediaplayer_params.h

Issue 1972783003: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify suspend state logic, and rebase Created 4 years, 7 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_params.h
diff --git a/media/blink/webmediaplayer_params.h b/media/blink/webmediaplayer_params.h
index 40413010b508cd9a173c669a6f1849f11bcf3ceb..c376f565870d21d4b1e08dd4b70058674e08dfac 100644
--- a/media/blink/webmediaplayer_params.h
+++ b/media/blink/webmediaplayer_params.h
@@ -57,7 +57,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
blink::WebContentDecryptionModule* initial_cdm,
SurfaceManager* surface_manager,
- blink::WebMediaSession* media_session);
+ blink::WebMediaSession* media_session,
+ bool allow_idle_suspend);
~WebMediaPlayerParams();
@@ -99,6 +100,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
const blink::WebMediaSession* media_session() const { return media_session_; }
+ bool allow_idle_suspend() const { return allow_idle_suspend_; }
+
private:
DeferLoadCB defer_load_cb_;
scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
@@ -113,6 +116,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
SurfaceManager* surface_manager_;
blink::WebMediaSession* media_session_;
+ const bool allow_idle_suspend_;
DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
};

Powered by Google App Engine
This is Rietveld 408576698