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

Unified Diff: content/public/renderer/content_renderer_client.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: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index d96adc9a82a7067f2874fff2a3d1f4694e5c62bc..780266e719a563043a25dc615907c53a8d5b45e9 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -348,6 +348,9 @@ class CONTENT_EXPORT ContentRendererClient {
// from the worker thread.
virtual void DidInitializeWorkerContextOnWorkerThread(
v8::Local<v8::Context> context) {}
+
+ // Whether this renderer allows media players to suspend when idle.
+ virtual bool AllowMediaIdleSuspend();
alokp 2016/05/17 15:13:38 IMHO this API does not belong here. Since this is
};
} // namespace content
« no previous file with comments | « chromecast/renderer/cast_content_renderer_client.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698