Set file tokens for NaCl main nexe if available to enable validation caching.
commit1090d2b8925a4ca54b21c6f999fbf9ca992cd44e
authorjvoung@chromium.org <jvoung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 07:26:07 +0000 (23 07:26 +0000)
committerjvoung@chromium.org <jvoung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 07:26:07 +0000 (23 07:26 +0000)
tree5b9985406fba93bf94af93acf3e84f984c83ae74
parent8b2f47cc891e5e84c7f4772f9b8df732ea28ac91
Set file tokens for NaCl main nexe if available to enable validation caching.

Also enable mmap'ing the main nexe, which may help a bit
in subsequent runs as well (first run the validator needs
page in all of the text anyway).

pnacl-llc.nexe, etc will be handled separately:
https://codereview.chromium.org/224803002/

TEST=NaClBrowserTestVcacheExtension.ValidationCacheOfMainNexe

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3421

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272429 0039d316-1c4b-4281-b951-d872f2087c98
18 files changed:
chrome/test/base/uma_histogram_helper.cc
chrome/test/base/uma_histogram_helper.h
chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.html [new file with mode: 0644]
chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js [new file with mode: 0644]
chrome/test/data/nacl/extension_validation_cache/manifest.json [new file with mode: 0644]
chrome/test/data/nacl/nacl_test_data.gyp
chrome/test/nacl/nacl_browsertest.cc
chrome/test/nacl/nacl_browsertest_uma.cc
chrome/test/nacl/nacl_browsertest_util.cc
chrome/test/nacl/nacl_browsertest_util.h
components/nacl/browser/nacl_browser.cc
components/nacl/browser/nacl_browser.h
components/nacl/renderer/ppb_nacl_private_impl.cc
ppapi/api/private/ppb_nacl_private.idl
ppapi/c/private/ppb_nacl_private.h
ppapi/native_client/src/trusted/plugin/plugin.cc
ppapi/native_client/src/trusted/plugin/plugin.h
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c