DescriptionIntroduce base::MemoryPressureMonitor
This is a step towards unifying the various ways to "notify"
MemoryPressureListeners.
This also provides "GetCurrentPressureLevel" to a more general-purpose
place so we'll be able to use it on other platforms.
(Especially Windows, so we can use it in renderer_frame_manager).
See:
https://docs.google.com/a/chromium.org/document/d/1z3SR3JfKOwVaZxrsfHLOrPjo4-IVtnijaX86LKYPEQs/edit#
for more on the rationale and design, and
https://codereview.chromium.org/1045433002/
for what this might look like for ChromeOS's memory
monitor.
BUG=463546
Committed: https://crrev.com/87f6aa1c21c81727a9d6e9813b66dbc58eb2ecc0
Cr-Commit-Position: refs/heads/master@{#324086}
Patch Set 1 #Patch Set 2 : Move to base #
Total comments: 2
Patch Set 3 : review comments (CHECK->DCHECK) #Patch Set 4 : review comments (CHECK->DCHECK) #
Messages
Total messages: 22 (5 generated)
|