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

Unified Diff: content/public/browser/memory_pressure_observer.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: Fixed flaky unit test Created 5 years, 11 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/content_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/memory_pressure_observer.h
diff --git a/content/public/browser/memory_pressure_observer.h b/content/public/browser/memory_pressure_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..0bfdea487660372498b624821572985da33cac3f
--- /dev/null
+++ b/content/public/browser/memory_pressure_observer.h
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_MEMORY_PRESSURE_OBSERVER_H_
+#define CONTENT_PUBLIC_BROWSER_MEMORY_PRESSURE_OBSERVER_H_
+
+#include "content/common/content_export.h"
+
+#if defined(OS_CHROMEOS)
+namespace base {
+class MemoryPressureObserverChromeOS;
+}
+
+namespace content {
+
+// Returns the MemoryPressureObserverChromeOS which gets created and is owned by
+// content.
+CONTENT_EXPORT base::MemoryPressureObserverChromeOS*
+ GetMemoryPressureObserver();
+
+} // namespace content
+#endif
+
+#endif // CONTENT_PUBLIC_BROWSER_MEMORY_PRESSURE_OBSERVER_H_
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698