|
Safebrowsing: change gethash caching to match api 2.3 rules, fix some corner cases.
Major differences:
1. Even if a fullhash matches one from an addchunk, still do a gethash to verify it.
2. Cached gethash results are cleared every update and on restart.
3. Cached gethash results have independent cache lifetimes. (This CL uses
hardcoded cache_lifetime of 45 minutes since it still does v2.2 requests.)
BUG= 357763
Total comments: 14
Total comments: 16
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1004 lines, -661 lines) |
Patch |
 |
M |
chrome/browser/safe_browsing/database_manager.h
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/database_manager.cc
|
View
|
1
2
3
4
|
6 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/database_manager_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_manager.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_manager.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_parser.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_parser_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_database.h
|
View
|
1
2
|
7 chunks |
+26 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_database.cc
|
View
|
1
2
3
4
5
|
19 chunks |
+93 lines, -157 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
|
View
|
1
2
3
4
5
|
49 chunks |
+749 lines, -261 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
View
|
1
|
9 chunks |
+14 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_store.h
|
View
|
|
3 chunks |
+6 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_store_file.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_store_file.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_store_file_unittest.cc
|
View
|
|
33 chunks |
+32 lines, -93 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_store_unittest.cc
|
View
|
|
6 chunks |
+22 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_util.h
|
View
|
|
3 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_util.cc
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|