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

Unified Diff: content/public/browser/browser_thread.h

Issue 815183002: Using the new MemoryPressureListener instead of the LowMemoryObserver when the enhanced memory mana… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Solved addressability problem Created 6 years 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/public/browser/browser_thread.h
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h
index 8daa0dbc916b501356734f8c73dbdc14275dd1b3..6d622873424887cef1366f739f0c9677dbcd24eb 100644
--- a/content/public/browser/browser_thread.h
+++ b/content/public/browser/browser_thread.h
@@ -20,6 +20,9 @@ namespace base {
class MessageLoop;
class SequencedWorkerPool;
class Thread;
+#if defined(OS_CHROMEOS)
+class MemoryPressureObserverChromeOS;
+#endif
}
namespace content {
@@ -152,6 +155,10 @@ class CONTENT_EXPORT BrowserThread {
from_here, object);
}
+#if defined(OS_CHROMEOS)
+ static base::MemoryPressureObserverChromeOS* GetMemoryPressureObserver();
+#endif
piman 2014/12/20 02:53:15 This doesn't really look like it belongs to Browse
Mr4D (OOO till 08-26) 2014/12/20 03:01:05 Sure - we could also do it that way. Do you prefer
piman 2014/12/20 03:05:17 I think I would prefer top-level free. This doesn'
Mr4D (OOO till 08-26) 2015/01/06 22:22:06 Done that way. However - I still believe that thi
+
// Simplified wrappers for posting to the blocking thread pool. Use this
// for doing things like blocking I/O.
//
« content/browser/browser_thread_impl.cc ('K') | « content/browser/browser_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698