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

Unified Diff: third_party/WebKit/public/platform/WebMemoryCoordinator.h

Issue 2230433002: Add MemoryCoordinatorClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak Created 4 years, 4 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
Index: third_party/WebKit/public/platform/WebMemoryCoordinator.h
diff --git a/third_party/WebKit/public/web/WebMemoryCoordinator.h b/third_party/WebKit/public/platform/WebMemoryCoordinator.h
similarity index 75%
rename from third_party/WebKit/public/web/WebMemoryCoordinator.h
rename to third_party/WebKit/public/platform/WebMemoryCoordinator.h
index 306b961c12f4523ff7079eacaa6deee5320a9b03..ff2513a636ad612238d8b46e8866ee5df6897454 100644
--- a/third_party/WebKit/public/web/WebMemoryCoordinator.h
+++ b/third_party/WebKit/public/platform/WebMemoryCoordinator.h
@@ -13,7 +13,12 @@ namespace blink {
class WebMemoryCoordinator {
public:
// Called when a memory pressure notification is received.
+ // TODO(bashi): Deprecating. Remove this when MemoryPressureListener is
+ // gone.
BLINK_EXPORT static void onMemoryPressure(WebMemoryPressureLevel);
+
+ // Called when Blink should purge caches.
+ BLINK_EXPORT static void purgeMemory();
tasak 2016/08/15 08:12:24 BLINK_PLATFORM_EXPORT? Because: e:\b\c\b\win\src\t
bashi 2016/08/16 00:09:07 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698