| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "public/platform/WebMemoryCoordinator.h" | 5 #include "public/platform/WebMemoryCoordinator.h" |
| 6 | 6 |
| 7 #include "platform/MemoryCoordinator.h" | 7 #include "platform/MemoryCoordinator.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 void WebMemoryCoordinator::onMemoryPressure( | 11 void WebMemoryCoordinator::onMemoryPressure( |
| 12 WebMemoryPressureLevel pressureLevel) { | 12 WebMemoryPressureLevel pressureLevel) { |
| 13 MemoryCoordinator::instance().onMemoryPressure(pressureLevel); | 13 MemoryCoordinator::instance().onMemoryPressure(pressureLevel); |
| 14 } | 14 } |
| 15 | 15 |
| 16 void WebMemoryCoordinator::onMemoryStateChange(MemoryState state) { |
| 17 MemoryCoordinator::instance().onMemoryStateChange(state); |
| 18 } |
| 19 |
| 16 void WebMemoryCoordinator::prepareToSuspend() { | 20 void WebMemoryCoordinator::prepareToSuspend() { |
| 17 MemoryCoordinator::instance().prepareToSuspend(); | 21 MemoryCoordinator::instance().prepareToSuspend(); |
| 18 } | 22 } |
| 19 | 23 |
| 20 } // namespace blink | 24 } // namespace blink |
| OLD | NEW |