Chromium Code Reviews| Index: third_party/WebKit/public/web/WebMemoryCoordinator.h |
| diff --git a/third_party/WebKit/public/web/WebMemoryCoordinator.h b/third_party/WebKit/public/web/WebMemoryCoordinator.h |
| index 306b961c12f4523ff7079eacaa6deee5320a9b03..68457a453c82ba1cf294ce152da5f4560f20ff51 100644 |
| --- a/third_party/WebKit/public/web/WebMemoryCoordinator.h |
| +++ b/third_party/WebKit/public/web/WebMemoryCoordinator.h |
| @@ -10,10 +10,18 @@ |
| namespace blink { |
| +enum class WebMemoryAllocationMode { |
| + Normal, |
| + Throttled, |
| +}; |
| + |
| class WebMemoryCoordinator { |
| public: |
| // Called when a memory pressure notification is received. |
| BLINK_EXPORT static void onMemoryPressure(WebMemoryPressureLevel); |
| + |
| + // Called when the system wants to throttle/unthrottle memory allocation. |
| + BLINK_EXPORT static void setAllocationMode(WebMemoryAllocationMode); |
|
haraken
2016/06/27 02:17:07
Would it make more sense to introduce onMemoryStat
|
| }; |
| } // namespace blink |