Extension API enterprise.platformKeys.
commit26c155cd58075a31a194759e0c35d0dd44fa26ce
authorpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 22:14:23 +0000 (23 22:14 +0000)
committerpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 22:14:23 +0000 (23 22:14 +0000)
tree58aee7c09f595c005ad396f0d2f623fc145e73ad
parent19298d790a3a4843fb9db8bd9a209e6d511c0632
Extension API enterprise.platformKeys.

First version that implements all proposed functions backed by the TPM; enabled on dev-channel only.

This is still missing several features:
- Reusing algorithm normalization of WebCrypto.
- Allow calling Sign() at most once per key.
- Storing which extension imported a certificate.
- Device-wide token.
- Passing publicExponent to generateKey.
- Throwing DOMExceptions instead of Errors.
- ...

BUG=364435

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272613 0039d316-1c4b-4281-b951-d872f2087c98
42 files changed:
chrome/browser/chromeos/platform_keys/OWNERS [new file with mode: 0644]
chrome/browser/chromeos/platform_keys/platform_keys.h [new file with mode: 0644]
chrome/browser/chromeos/platform_keys/platform_keys_nss.cc [new file with mode: 0644]
chrome/browser/extensions/api/enterprise_platform_keys/OWNERS [new file with mode: 0644]
chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api.cc [new file with mode: 0644]
chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api.h [new file with mode: 0644]
chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc [new file with mode: 0644]
chrome/chrome_browser_chromeos.gypi
chrome/chrome_browser_extensions.gypi
chrome/chrome_renderer.gypi
chrome/chrome_tests.gypi
chrome/common/extensions/api/_api_features.json
chrome/common/extensions/api/_permission_features.json
chrome/common/extensions/api/api.gyp
chrome/common/extensions/api/enterprise_platform_keys.idl [new file with mode: 0644]
chrome/common/extensions/api/enterprise_platform_keys_internal.idl [new file with mode: 0644]
chrome/common/extensions/permissions/chrome_api_permissions.cc
chrome/common/extensions/permissions/permission_set_unittest.cc
chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc
chrome/renderer/resources/extensions/OWNERS
chrome/renderer/resources/extensions/enterprise_platform_keys/OWNERS [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys/internal_api.js [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys/key.js [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys/token.js [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys/utils.js [new file with mode: 0644]
chrome/renderer/resources/extensions/enterprise_platform_keys_custom_bindings.js [new file with mode: 0644]
chrome/renderer/resources/renderer_resources.grd
chrome/test/data/extensions/api_test/enterprise_platform_keys.crx [new file with mode: 0644]
chrome/test/data/extensions/api_test/enterprise_platform_keys.pem [new file with mode: 0644]
chrome/test/data/extensions/api_test/enterprise_platform_keys/OWNERS [new file with mode: 0644]
chrome/test/data/extensions/api_test/enterprise_platform_keys/basic.html [new file with mode: 0644]
chrome/test/data/extensions/api_test/enterprise_platform_keys/basic.js [new file with mode: 0644]
chrome/test/data/extensions/api_test/enterprise_platform_keys/manifest.json [new file with mode: 0644]
chrome/test/data/extensions/api_test/enterprise_platform_keys/update_manifest.xml [new file with mode: 0644]
extensions/browser/extension_function_histogram_value.h
extensions/common/permissions/api_permission.h
net/cert/nss_cert_database.cc
net/cert/nss_cert_database.h
net/cert/nss_cert_database_chromeos.cc
tools/metrics/histograms/histograms.xml