|
Switch Safe Browsing's metadata from string to struct.
This is needed so we can add more types to it. This CL plumbs through
the struct but keeps the string in-tact. This is backward compatible with clank/'s current implementation.
I've added parsing methods in the appropriate place in the stack:
- For Pver4: v4_get_hash_protocol_manager.cc
- For XLB: safe_browsing_api_handler_util.cc
- For Pver3: protocol_parser.cc [separate CL]
The next two CLs:
- Switch clank/ to use the struct. https://chrome-internal-review.googlesource.com/#/c/249571/
- Enable parsing for Pver3, switch ui_manager.cc to use the parsed values, and clean up.
BUG= 589610
Committed: https://crrev.com/c7614e617a9a7830a6b0da02701b0340699566b3
Cr-Commit-Position: refs/heads/master@{#378082}
Total comments: 6
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+301 lines, -77 lines) |
Patch |
 |
M |
chrome/browser/renderer_host/safe_browsing_resource_throttle.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/safe_browsing_resource_throttle.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/local_database_manager.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_parser.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_parser_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_test.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/ui_manager.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/ui_manager.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/components_tests.gyp
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/database_manager.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/remote_database_manager.cc
|
View
|
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/safe_browsing_api_handler.h
|
View
|
1
|
1 chunk |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/safe_browsing_api_handler.cc
|
View
|
1
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/safe_browsing_api_handler_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+44 lines, -24 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/safe_browsing_api_handler_util.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/safe_browsing_api_handler_util.cc
|
View
|
1
2
3
|
3 chunks |
+96 lines, -13 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing_db/testing_util.h
|
View
|
1
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/util.h
|
View
|
1
2
3
|
2 chunks |
+32 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/util.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/v4_get_hash_protocol_manager.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/safe_browsing_db/v4_get_hash_protocol_manager_unittest.cc
|
View
|
1
|
4 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
Total messages: 26 (13 generated)
|