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

Unified Diff: content/browser/ppapi_plugin_process_host.h

Issue 929483004: Plugin Power Saver: Throttled Plugins should block TCPSocket reads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/browser/ppapi_plugin_process_host.h
diff --git a/content/browser/ppapi_plugin_process_host.h b/content/browser/ppapi_plugin_process_host.h
index 3f90d3025dc741653a74a4ca8e0290500fd4bf0d..e4c58a9b33bf9af05d8330774cce748a1b1f3770 100644
--- a/content/browser/ppapi_plugin_process_host.h
+++ b/content/browser/ppapi_plugin_process_host.h
@@ -90,6 +90,11 @@ class PpapiPluginProcessHost : public BrowserChildProcessHostDelegate,
static void DidDeleteOutOfProcessInstance(int plugin_process_id,
int32 pp_instance);
+ // Notification that a Plugin instance has been throttled or unthrottled.
+ static void OnPluginInstanceThrottleStateChange(int plugin_process_id,
+ int32 pp_instance,
+ bool is_throttled);
+
// Returns the instances that match the specified process name.
// It can only be called on the IO thread.
static void FindByName(const base::string16& name,

Powered by Google App Engine
This is Rietveld 408576698