Skip to content

Commit

Permalink
Add missing RTCCertificate related types and members.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 543882651
  • Loading branch information
Closure Team authored and copybara-github committed Jun 27, 2023
1 parent 6e7155e commit 2bf929c
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions externs/browser/w3c_rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3220,9 +3220,37 @@ var RTCDataChannelInitDictionary_;
var RTCDataChannelInit;

/**
* @typedef {{expires: number}}
* @interface
* @see https://www.w3.org/TR/webrtc/#dom-rtcdtlsfingerprint
*/
function RTCDtlsFingerprint() {}

/** @const {string|undefined} */
RTCDtlsFingerprint.prototype.algorithm;

/** @const {string|undefined} */
RTCDtlsFingerprint.prototype.value;

/**
* @interface
* @see https://www.w3.org/TR/webrtc/#dom-rtccertificate
*/
var RTCCertificate;
function RTCCertificate() {}

/** @const {number} */
RTCCertificate.prototype.expires;

/** @return {!Array<!RTCDtlsFingerprint>} */
RTCCertificate.prototype.getFingerprints = function() {};

/**
* @interface
* @see https://www.w3.org/TR/webrtc/#dom-rtccertificateexpiration
*/
function RTCCertificateExpiration() {}

/** @const {number|undefined} */
RTCCertificateExpiration.prototype.expires;

/**
* @record
Expand Down Expand Up @@ -3250,7 +3278,9 @@ RTCOfferOptions.prototype.offerToReceiveVideo;
function RTCPeerConnection(configuration, constraints) {}

/**
* @param {Object} keygenAlgorithm
* TODO(b/240494860): Reference webCrypto.AlgorithmIdentifier instead of using
* Object.
* @param {!webCrypto.AlgorithmIdentifier|!RTCCertificateExpiration} keygenAlgorithm
* @return {Promise<RTCCertificate>}
*/
RTCPeerConnection.generateCertificate = function(keygenAlgorithm) {};
Expand Down

0 comments on commit 2bf929c

Please sign in to comment.