|
|
Componentize safe_browsing [1]: create component, move messages, constants and switches.
Rationale:
Current safe browsing code lives in the chrome/ layer, but we
want to make it available in WebView as well (at least the
relevant parts of it). Hence this effort of making a safe
browsing component.
In this patch:
- move IPCs (spellcheck_messages) + add dedicated generator
- isolate and move safe browsing specific constants
- isolate and move safe browsing specific switches
- remove a few unused includes
Note:
To reduce the number of components and keep everything
related in one place the idea is to move the code currently
living in components/safe_browsing_db/ to this safe_browsing/
component in the future.
BUG= 488675
TBR=brettw@chromium.org
Committed: https://crrev.com/f30c94f1fa39ad0467a31ff99e7acc02142e6fa6
Cr-Commit-Position: refs/heads/master@{#435635}
Total comments: 6
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+205 lines, -136 lines) |
Patch |
 |
M |
chrome/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/client_side_detection_host.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/client_side_detection_service.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/client_side_model_loader.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/download_protection_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/download_protection_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/local_database_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/threat_details.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/threat_details_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_constants.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_constants.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/common/common_message_generator.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
chrome/common/safe_browsing/safebrowsing_messages.h
|
View
|
|
1 chunk |
+0 lines, -65 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/safe_browsing/DEPS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/safe_browsing/threat_dom_details.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/safe_browsing/threat_dom_details_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/base/test_launcher_utils.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
components/safe_browsing/OWNERS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/BUILD.gn
|
View
|
1
2
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/DEPS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/OWNERS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/safebrowsing_constants.h
|
View
|
1
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/safebrowsing_constants.cc
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/safebrowsing_message_generator.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/safebrowsing_message_generator.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/safe_browsing/common/safebrowsing_messages.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/safebrowsing_switches.h
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/safe_browsing/common/safebrowsing_switches.cc
|
View
|
1
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
Total messages: 82 (49 generated)
|