Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1089)

Unified Diff: third_party/WebKit/public/platform/WebRTCCertificate.h

Issue 2828563002: RTCCertificate.getFingerprints added (exposed to the web) (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCDtlsFingerprint.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..322d2ba9982fdcad498e2b740ca023772bf3bcc1 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://w3c.github.io/webrtc-pc/#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> GetFingerprints() const = 0;
// Creates a PEM strings representation of the certificate. See also
// |WebRTCCertificateGenerator::fromPEM|.
virtual WebRTCCertificatePEM ToPEM() const = 0;
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCDtlsFingerprint.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698