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

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

Issue 2668663002: Purge memory before suspending timer queues when backgrounded. (Closed)
Patch Set: Add requestPurgeMemory to Platform Created 3 years, 10 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/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index d623c5a5d6fa57cb244877de947a0c4d7fd83b0a..5c41c9a090ec95f1d9f035612d310b13f1d81f88 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -669,6 +669,9 @@ class BLINK_PLATFORM_EXPORT Platform {
virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; }
+ // Memory ------------------------------------------------------------
bashi 2017/02/09 07:34:58 nit: Could you add a description? // Requests pur
tasak 2017/02/14 07:28:10 Done.
+ virtual void requestPurgeMemory() {}
+
protected:
Platform();
virtual ~Platform() {}

Powered by Google App Engine
This is Rietveld 408576698