A bunch of remaining parts of extension content verification
commit620f3e50bdbb11cf69dd239b5a976fcdf0d2dade
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 15 May 2014 17:00:52 +0000 (15 17:00 +0000)
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 15 May 2014 17:00:52 +0000 (15 17:00 +0000)
treebba45635583c93f799d82b4750a6210fcd5a72fe
parent8e3a653ada2c5c2fc78d7d9b9ef48f07a66beb71
A bunch of remaining parts of extension content verification

-The real guts of content_hash_fetcher.cc, which fetches the
 verified_contents.json file from the webstore if needed and also runs
 tasks to compute and cache the block-level hashes of all files in an
 extension.

-The real guts of content_hash_reader.cc, which uses the work done by
 the content_hash_fetcher during validation of extension file content as
 it's read off of disk at time of use.

-Code to avoid verifying transcoded files (images used in browser
 process, and message catalogs).

-Don't allow downgrade of mode via kForceFieldTrials command line switch

-Various bits of plumbing to support all of the above

BUG=369895
R=rockot@chromium.org

Review URL: https://codereview.chromium.org/289533003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270694 0039d316-1c4b-4281-b951-d872f2087c98
16 files changed:
chrome/browser/extensions/extension_system_impl.cc
chrome/common/extensions/extension_constants.cc
chrome/common/extensions/extension_constants.h
extensions/browser/computed_hashes.cc [new file with mode: 0644]
extensions/browser/computed_hashes.h [new file with mode: 0644]
extensions/browser/content_hash_fetcher.cc
extensions/browser/content_hash_fetcher.h
extensions/browser/content_hash_reader.cc
extensions/browser/content_hash_reader.h
extensions/browser/content_verifier.cc
extensions/browser/content_verifier_delegate.h
extensions/common/constants.cc
extensions/common/constants.h
extensions/common/file_util.cc
extensions/common/file_util.h
extensions/extensions.gyp