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

Unified Diff: content/child/child_thread_impl.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 | « chrome/app/helper-Info.plist ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.h
diff --git a/content/child/child_thread_impl.h b/content/child/child_thread_impl.h
index a7e2cd2f2565f7f504b80f0de81c1d219a6d3d93..ab9a4ecc8259598751fe270a4acb3cacf4d600c0 100644
--- a/content/child/child_thread_impl.h
+++ b/content/child/child_thread_impl.h
@@ -59,6 +59,10 @@ class QuotaMessageFilter;
class ResourceDispatcher;
class ThreadSafeSender;
+#if defined(OS_MACOSX)
+class AppNapActivity;
+#endif
+
// The main thread of a child process derives from this class.
class CONTENT_EXPORT ChildThreadImpl
: public IPC::Listener,
@@ -281,6 +285,10 @@ class CONTENT_EXPORT ChildThreadImpl
scoped_refptr<base::SingleThreadTaskRunner> browser_process_io_runner_;
+#if defined(OS_MACOSX)
+ std::unique_ptr<AppNapActivity> app_nap_activity_;
+#endif // defined(OS_MACOSX)
+
std::unique_ptr<base::WeakPtrFactory<ChildThreadImpl>>
channel_connected_factory_;
« no previous file with comments | « chrome/app/helper-Info.plist ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698