|
Sketch permitting clients to store upto a byte of info with an entry in in-memory index of SimpleCache, and to permit using a callback to use that information to veto a hit.
Use that inside HttpCache::Transaction to quickly reject cached entries with zero freshness and not enough info to refresh, when load flags don't require us to use them.
(This is crude, and is missing some test changes. Also missing needed UMA changes. It would also at the very least be sensibly splittable into 2 CLs for actual review)
BUG= 729679
Total comments: 3
Total comments: 8
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+258 lines, -50 lines) |
Patch |
|
M |
net/base/net_error_list.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/backend_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/disk_cache.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/disk_cache.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_backend_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_backend_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_backend_version.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_index.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_index.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+35 lines, -7 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_index_file.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_index_file.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_index_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
10 chunks |
+18 lines, -11 lines |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_synchronous_entry.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/disk_cache/simple/simple_version_upgrade.cc
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/http/http_cache.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
4 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/http/http_cache.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
net/http/http_cache_transaction.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/http/http_cache_transaction.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
4 chunks |
+86 lines, -15 lines |
0 comments
|
Download
|
|
M |
net/http/http_cache_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
net/http/mock_http_cache.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+6 lines, -0 lines |
1 comment
|
Download
|
|
M |
net/http/mock_http_cache.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
Total messages: 78 (52 generated)
|