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

Unified Diff: content/public/renderer/plugin_instance_throttler.h

Issue 879403002: Plugin Power Saver: Mute throttled plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove hack used for testing. Created 5 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
« no previous file with comments | « no previous file | content/renderer/pepper/plugin_instance_throttler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/plugin_instance_throttler.h
diff --git a/content/public/renderer/plugin_instance_throttler.h b/content/public/renderer/plugin_instance_throttler.h
index d20f5257cd5c79f224701f5692658979c026dd25..f9c5b92a2cce71e7ff50c1752aa21d9324c04089 100644
--- a/content/public/renderer/plugin_instance_throttler.h
+++ b/content/public/renderer/plugin_instance_throttler.h
@@ -84,6 +84,10 @@ class CONTENT_EXPORT PluginInstanceThrottler {
virtual blink::WebPlugin* GetWebPlugin() const = 0;
+ // Throttler needs to know when the plugin audio is throttled, as this may
+ // prevent the plugin from generating new frames.
+ virtual void NotifyAudioThrottled() = 0;
+
protected:
PluginInstanceThrottler() {}
« no previous file with comments | « no previous file | content/renderer/pepper/plugin_instance_throttler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698