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

Unified Diff: third_party/WebKit/Source/platform/MemoryCoordinator.h

Issue 2463283002: Replace prepareToSuspend() with onMemoryStateChange(SUSPENDED) (Closed)
Patch Set: Remove prepareToSuspend Created 4 years, 1 month 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/MemoryCoordinator.h
diff --git a/third_party/WebKit/Source/platform/MemoryCoordinator.h b/third_party/WebKit/Source/platform/MemoryCoordinator.h
index c19de9a211491c7d111206b892e96335dc6eea91..0aa61c576e6a2fab183781000ee124da85bc1f2e 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.h
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.h
@@ -17,11 +17,6 @@ class PLATFORM_EXPORT MemoryCoordinatorClient : public GarbageCollectedMixin {
public:
virtual ~MemoryCoordinatorClient() {}
- // Called when MemoryCoordinator is asked to prepare for suspending
- // the renderer. Clients should purge discardable memory as much as
- // possible.
- virtual void prepareToSuspend() {}
-
// TODO(bashi): Deprecating. Remove this when MemoryPressureListener is
// gone.
virtual void onMemoryPressure(WebMemoryPressureLevel) {}
@@ -41,8 +36,6 @@ class PLATFORM_EXPORT MemoryCoordinator final
void registerClient(MemoryCoordinatorClient*);
void unregisterClient(MemoryCoordinatorClient*);
- void prepareToSuspend();
-
// TODO(bashi): Deprecating. Remove this when MemoryPressureListener is
// gone.
void onMemoryPressure(WebMemoryPressureLevel);

Powered by Google App Engine
This is Rietveld 408576698