DescriptionPurge browser cache for dom storage in a smarter way
This CL does:
1. Use the total cache size to decide when to purge memory from in
memory caches.
2. Use different limits on databases and cache sizes based on the
platform and the ram available.
3. For low memory devices do not keep any cache around for closed
databases (closed tabs).
4. Add a memory pressure listener to dom storage. This listener is
supposed to construct and destruct in same thread. So, it is
constructed and destructed on UI thread by DOMStorageContextWrapper
and post tasks purge to the dom task runner.
BUG=610551, 607449
Committed: https://crrev.com/454f3cefe1b33de5a422778e5cf09d6311bb7fa7
Cr-Commit-Position: refs/heads/master@{#395418}
Patch Set 1 : #
Total comments: 16
Patch Set 2 : fixes. #Patch Set 3 : Fixes. #
Total comments: 1
Patch Set 4 : Nits. #Patch Set 5 : Add UMA to track savings. #Patch Set 6 : Purge all namespaces and use total cache size. #
Total comments: 2
Patch Set 7 : without unittest. #Patch Set 8 : Add unittest. #
Total comments: 4
Patch Set 9 : Add content_export. #
Total comments: 6
Patch Set 10 : Fix limit and description for UMA. #Messages
Total messages: 47 (22 generated)
|