Chromium Code Reviews| 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 c8e137b01507cb8905aa481c3084201cb5ad6995..78e07a92fd04e302e7a80b1d15851098e6c48cf6 100644 |
| --- a/third_party/WebKit/Source/platform/MemoryCoordinator.h |
| +++ b/third_party/WebKit/Source/platform/MemoryCoordinator.h |
| @@ -45,6 +45,10 @@ class PLATFORM_EXPORT MemoryCoordinator final |
| // Override the value of the physical memory for testing. |
| static void SetPhysicalMemoryMBForTesting(int64_t); |
| + // Returns true when available memory is low. |
| + // TODO(keishi): Remove when MemoryState is ready. |
| + static bool HasLowAvailableMemory(); |
|
haraken
2017/06/12 06:14:20
Where is the implementation of this method?
keishi
2017/06/12 07:48:12
Sorry. Added.
|
| + |
| // Caches whether this device is a low-end device and the device physical |
| // memory in static members. instance() is not used as it's a heap allocated |
| // object - meaning it's not thread-safe as well as might break tests counting |