Chromium Code Reviews
DescriptionMove platform/MemoryPurgeController -> core/dom/MemoryCoordinator
Reason for renaming:
We are going to replace MemoryPressureListener with memory coordinator[1].
The role of this class will not be limited to purge caches but also
handle other memory events like throttling.
Reason for moving platform to core:
MemoryCoordinator depends (and will depend) on things which live in core.
For example, it needs to ask MemoryCache to prune caches. It would also
ask StyleEngine to clear textToSheet and seetToText caches in the future.
Putting MemoryCoordinator in platform is a source of unwanted indirections.
Also, this CL removes MemoryPUrgeClient. It doesn't make sense to create an
instance of MemoryCoordinator per-page because the current implementation
doesn't do any per-page specific task. If we need to do a per-page specific
task in the future we can iterate over ordinaryPages() in MemoryCoordinator to
ask pages to execute the task.
BUG=617492
[1] https://docs.google.com/document/d/1dkUXXmpJk7xBUeQM-olBpTHJ2MXamDgY_kjNrl9JXMs
Committed: https://crrev.com/e9f7f82984084ef170e580cf6550154fbb585c6d
Cr-Commit-Position: refs/heads/master@{#400911}
Patch Set 1 #Patch Set 2 : move to dom/ #Messages
Total messages: 21 (10 generated)
|