Skip to content

Commit 0f7da6b

Browse files
chrismoonblickly
chrismoon
authored andcommitted
Automated g4 rollback of changelist 91286044.
*** Reason for rollback *** Tests have been fixed here *** Original change description *** Rollback of changelist 91235055. *** Reason for rollback *** Breaks some tests *** Original change description *** Adding chrome.enterprise.platformKeys to the externs. https://developer.chrome.com/extensions/enterprise_platformKeys#type-Token Also addi... *** ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=92020587
1 parent 2f6aac8 commit 0f7da6b

File tree

5 files changed

+507
-0
lines changed

5 files changed

+507
-0
lines changed

contrib/externs/chrome_extensions.js

+72
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,78 @@ chrome.copresence.onMessagesReceived;
18131813
chrome.copresence.onStatusUpdated;
18141814

18151815

1816+
/**
1817+
* @see https://developer.chrome.com/extensions/enterprise_platformKeys
1818+
* @const
1819+
*/
1820+
chrome.enterprise = {};
1821+
1822+
1823+
/**
1824+
* @constructor
1825+
* platformKeys allows for generating hardware-backed keys and the installation
1826+
* of certificates for these keys.
1827+
* @see https://developer.chrome.com/extensions/enterprise_platformKeys.
1828+
*/
1829+
chrome.enterprise.platformKeys = function() {};
1830+
1831+
1832+
/**
1833+
* @constructor
1834+
* @see https://developer.chrome.com/extensions/enterprise_platformKeys#type-Token
1835+
*/
1836+
chrome.enterprise.Token = function() {};
1837+
1838+
1839+
/**
1840+
* @type {string} Unique id for the Token, either "user" or "system."
1841+
*/
1842+
chrome.enterprise.Token.prototype.id;
1843+
1844+
1845+
/**
1846+
* @type {!webCrypto.SubtleCrypto} Implements the WebCrypto's
1847+
* SubtleCrypto interface. The cryptographic operations, including key
1848+
* generation, are hardware-backed.
1849+
*/
1850+
chrome.enterprise.Token.prototype.subtleCrypto;
1851+
1852+
1853+
/**
1854+
* @param {function(!Array.<!chrome.enterprise.Token>): void} callback Called
1855+
* with an array of Tokens.
1856+
*/
1857+
chrome.enterprise.platformKeys.getTokens = function(callback) {};
1858+
1859+
1860+
/**
1861+
* @param {string} tokenId Id of cetificate token either "user" or "system".
1862+
* @param {(function(!Array.<!ArrayBuffer>): void)} callback Array of DER
1863+
* encoded x.509 certificates.
1864+
*/
1865+
chrome.enterprise.platformKeys.getCertificates = function(tokenId, callback) {};
1866+
1867+
1868+
/**
1869+
* @param {string} tokenId The id of a Token returned by getTokens.
1870+
* @param {!ArrayBuffer} certificate The DER encoding of a X.509 certificate.
1871+
* @param {function(): void=} opt_callback Called back when this operation is
1872+
* finished.
1873+
*/
1874+
chrome.enterprise.platformKeys.importCertificate =
1875+
function(tokenId, certificate, opt_callback) {};
1876+
1877+
1878+
/**
1879+
* @param {string} tokenId The id of a Token returned by getTokens.
1880+
* @param {!ArrayBuffer} certificate The DER encoding of a X.509 certificate.
1881+
* @param {(function(): void)=} opt_callback Called back when this operation is
1882+
* finished.
1883+
*/
1884+
chrome.enterprise.platformKeys.removeCertificate =
1885+
function(tokenId, certificate, opt_callback) {};
1886+
1887+
18161888
/**
18171889
* @see https://developer.chrome.com/extensions/extension.html
18181890
* @const

externs/es6.js

+6
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ ArrayBufferView.prototype.byteOffset;
276276
ArrayBufferView.prototype.byteLength;
277277

278278

279+
/**
280+
* @typedef {!ArrayBuffer|!ArrayBufferView}
281+
*/
282+
var BufferSource;
283+
284+
279285
/**
280286
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
281287
* or buffer

externs/html5.js

+5
Original file line numberDiff line numberDiff line change
@@ -2391,6 +2391,11 @@ DOMTokenList.prototype.toString = function() {};
23912391
*/
23922392
HTMLElement.prototype.classList;
23932393

2394+
/**
2395+
* Web Cryptography API Window.prototype.crypto.* is deprecated. Please use the
2396+
* new w3c_webcrypto.js for this functionality moving forward.
2397+
*/
2398+
23942399
/**
23952400
* Web Cryptography API
23962401
* @see http://www.w3.org/TR/WebCryptoAPI/

0 commit comments

Comments
 (0)