|
Beginning of support for extension content verification
The basic idea is that the webstore will provide signed expected hashes
of file content that can be checked during runtime in the browser to
detect corruption due to disk errors or malware.
This CL has a lot of the high-level pieces, with several of the details
left out for subsequent CLs to make this one more easily digestible.
The design is that there is a ContentVerifier for each BrowserContext
which can be used anywhere we read from files inside an extension. It
vends out ContentVerifyJob's, which need to be informed of the bytes
read from each file, and will know how to check those against a set of
expected block hashes. If the job detects contents that don't match what
was expected, it will notify the verifier.
BUG= 369895
R=rvargas@chromium.org, yoz@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269108
Total comments: 16
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+753 lines, -41 lines) |
Patch |
 |
M |
apps/shell/browser/shell_extension_system.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
apps/shell/browser/shell_extension_system.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/content_verifier_browsertest.cc
|
View
|
1
2
|
1 chunk |
+152 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.h
|
View
|
1
2
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_system_impl.h
|
View
|
1
2
|
4 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_system_impl.cc
|
View
|
1
2
3
4
|
6 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/test_extension_system.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/test_extension_system.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/user_script_master.h
|
View
|
|
4 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/user_script_master.cc
|
View
|
|
6 chunks |
+41 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/content_verifier/v1.crx
|
View
|
|
Binary file |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/content_verifier/v1/manifest.json
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/content_verifier/v1/page.html
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/content_verifier.h
|
View
|
1
2
|
1 chunk |
+103 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/content_verifier.cc
|
View
|
1
2
|
1 chunk |
+125 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/content_verifier_filter.h
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/content_verify_job.h
|
View
|
1
2
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/content_verify_job.cc
|
View
|
1
2
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_protocols.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_protocols.cc
|
View
|
1
2
3
4
|
9 chunks |
+36 lines, -25 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_system.h
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/info_map.h
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/info_map.cc
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/common/switches.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/common/switches.cc
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/extensions.gyp
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_file_job.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_file_job.cc
|
View
|
1
2
3
|
1 chunk |
+9 lines, -7 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|