| Index: third_party/WebKit/public/platform/WebRTCCertificate.h
|
| diff --git a/third_party/WebKit/public/platform/WebRTCCertificate.h b/third_party/WebKit/public/platform/WebRTCCertificate.h
|
| index 5628b6f06f1ee08e5ff190b5ccd3a42963cd18c0..8515c2e0753c936839ad971124d385f224504e50 100644
|
| --- a/third_party/WebKit/public/platform/WebRTCCertificate.h
|
| +++ b/third_party/WebKit/public/platform/WebRTCCertificate.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef WebRTCCertificate_h
|
| #define WebRTCCertificate_h
|
|
|
| +#include "WebVector.h"
|
| +
|
| #include "public/platform/WebRTCKeyParams.h"
|
| #include "public/platform/WebString.h"
|
|
|
| @@ -12,6 +14,20 @@
|
|
|
| namespace blink {
|
|
|
| +// https://www.w3.org/TR/webrtc/#dom-rtcdtlsfingerprint
|
| +class WebRTCDtlsFingerprint {
|
| + public:
|
| + WebRTCDtlsFingerprint(WebString algorithm, WebString value)
|
| + : algorithm_(algorithm), value_(value) {}
|
| +
|
| + WebString Algorithm() const { return algorithm_; }
|
| + WebString Value() const { return value_; }
|
| +
|
| + private:
|
| + WebString algorithm_;
|
| + WebString value_;
|
| +};
|
| +
|
| // Corresponds to |rtc::RTCCertificatePEM| in WebRTC.
|
| // See |WebRTCCertificate::toPEM| and |WebRTCCertificateGenerator::fromPEM|.
|
| class WebRTCCertificatePEM {
|
| @@ -45,6 +61,7 @@ class WebRTCCertificate {
|
|
|
| // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z.
|
| virtual uint64_t Expires() const = 0;
|
| + virtual WebVector<WebRTCDtlsFingerprint> Fingerprints() const = 0;
|
| // Creates a PEM strings representation of the certificate. See also
|
| // |WebRTCCertificateGenerator::fromPEM|.
|
| virtual WebRTCCertificatePEM ToPEM() const = 0;
|
|
|