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

Unified Diff: third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp

Issue 2251853005: Reland: Add MemoryCoordinatorClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment 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/Source/platform/exported/WebMemoryCoordinator.cpp
diff --git a/third_party/WebKit/Source/web/WebMemoryCoordinator.cpp b/third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp
similarity index 66%
rename from third_party/WebKit/Source/web/WebMemoryCoordinator.cpp
rename to third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp
index 225ee6b90a0ddd70b7ab4bfc33113644e8cef0ed..3ff71f08b5ac32dd515bb9d0a43fbe199e7ad762 100644
--- a/third_party/WebKit/Source/web/WebMemoryCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp
@@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "public/web/WebMemoryCoordinator.h"
+#include "public/platform/WebMemoryCoordinator.h"
-#include "core/dom/MemoryCoordinator.h"
-#include "core/page/Page.h"
+#include "platform/MemoryCoordinator.h"
namespace blink {
@@ -14,4 +13,9 @@ void WebMemoryCoordinator::onMemoryPressure(WebMemoryPressureLevel pressureLevel
MemoryCoordinator::instance().onMemoryPressure(pressureLevel);
}
+void WebMemoryCoordinator::purgeMemory()
+{
+ MemoryCoordinator::instance().purgeMemory();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/blink_platform.gypi ('k') | third_party/WebKit/Source/web/WebMemoryCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698