|
Add an eviction mechanism for SDCH dictionaries.
Implemented policy:
* If space is needed for a newly loaded dictionary, evict any dictionaries
that haven't been used in a day to make room, oldest first.
* If the system signals memory pressure, flush all dictionaries.
Also moved chrome_sdch_policy.* -> net/sdch/sdch_owner.*.
BUG= 387883
BUG= 374916
Committed: https://crrev.com/a8a4e3c851d3e12ad27ac25493b6b690b867e39c
Cr-Commit-Position: refs/heads/master@{#310584}
Total comments: 9
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1130 lines, -219 lines) |
Patch |
 |
D |
chrome/browser/net/chrome_sdch_policy.h
|
View
|
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/net/chrome_sdch_policy.cc
|
View
|
|
1 chunk |
+0 lines, -48 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/sdch_browsertest.cc
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_io_data.h
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_io_data.cc
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl_io_data.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl_io_data.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/base/sdch_manager.h
|
View
|
1
2
|
6 chunks |
+17 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/base/sdch_manager.cc
|
View
|
1
2
|
8 chunks |
+25 lines, -31 lines |
0 comments
|
Download
|
 |
M |
net/base/sdch_manager_unittest.cc
|
View
|
1
2
3
4
|
6 chunks |
+68 lines, -42 lines |
0 comments
|
Download
|
 |
M |
net/base/sdch_observer.h
|
View
|
1
2
3
4
5
|
2 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/sdch_problem_code_list.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/filter/sdch_filter.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/filter/sdch_filter_unittest.cc
|
View
|
1
2
3
|
13 chunks |
+81 lines, -30 lines |
0 comments
|
Download
|
 |
M |
net/net.gypi
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/sdch/sdch_owner.h
|
View
|
1
2
3
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/sdch/sdch_owner.cc
|
View
|
1
2
|
1 chunk |
+265 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/sdch/sdch_owner_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+491 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
4 chunks |
+39 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17 (5 generated)
|