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

Unified Diff: base/process/process.h

Issue 2914913002: [Mac] Enable AppNap for renderers (Closed)
Patch Set: Add comment for magic numbers Created 3 years, 6 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 | base/process/process_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process.h
diff --git a/base/process/process.h b/base/process/process.h
index 8979dd4ab56d1c13992d24dbf0ed29feea479744..9902fafdca5194fe41ca90a3b6581ed27fe7383d 100644
--- a/base/process/process.h
+++ b/base/process/process.h
@@ -139,6 +139,9 @@ class BASE_EXPORT Process {
// Returns true if the priority was changed, false otherwise. If
// |port_provider| is null, this is a no-op and it returns false.
bool SetProcessBackgrounded(PortProvider* port_provider, bool value);
+
+ // Returns |true| if helper processes should participate in AppNap.
+ static bool IsAppNapEnabled();
#else
// A process is backgrounded when it's priority is lower than normal.
// Return true if this process is backgrounded, false otherwise.
« no previous file with comments | « no previous file | base/process/process_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698