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

Unified Diff: content/common/mac/app_nap_activity.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 | « content/child/child_thread_impl.cc ('k') | content/common/mac/app_nap_activity.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mac/app_nap_activity.h
diff --git a/content/common/mac/app_nap_activity.h b/content/common/mac/app_nap_activity.h
index c07f9ee8941d548b4eb30d27046909fd8724c371..c2896e8390c283b5a4084ec01ba5457503e91164 100644
--- a/content/common/mac/app_nap_activity.h
+++ b/content/common/mac/app_nap_activity.h
@@ -27,6 +27,10 @@ class CONTENT_EXPORT AppNapActivity {
AppNapActivity();
~AppNapActivity();
+ // Because there's no NSApplication in renderers, do some housekeeping
+ // to become eligible for App Nap.
+ static void InitializeAppNapSupport();
+
// Begin an activity and store the provided token.
void Begin();
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/common/mac/app_nap_activity.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698