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

Unified Diff: content/renderer/media/rtc_certificate_generator.h

Issue 1373023002: RTCCertificate, RTCPeerConnection.generateCertificate (WebRTC JavaScript) added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits + Pass webkit_tests (updated global-interface-listing-expected.txt) Created 5 years, 2 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
Index: content/renderer/media/rtc_certificate_generator.h
diff --git a/content/renderer/media/rtc_certificate_generator.h b/content/renderer/media/rtc_certificate_generator.h
new file mode 100644
index 0000000000000000000000000000000000000000..e831e16db3645abaac676654b81ef96a1c964b51
--- /dev/null
+++ b/content/renderer/media/rtc_certificate_generator.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
+#define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
+
+#include "base/macros.h"
+#include "third_party/WebKit/public/platform/WebRTCCertificate.h"
+#include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h"
+#include "third_party/WebKit/public/platform/WebRTCKeyParams.h"
+
+namespace content {
+
+// Chromium's WebRTCCertificateGenerator implementation; uses the
+// PeerConnectionIdentityStore/SSLIdentity::Generate to generate the identity,
+// rtc::RTCCertificate and content::RTCCertificate.
+class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator {
+ public:
+ RTCCertificateGenerator() {}
+ ~RTCCertificateGenerator() override {}
+
+ void generateCertificate(
jochen (gone - plz use gerrit) 2015/10/20 12:27:35 same here
hbos_chromium 2015/10/20 15:42:23 Done.
+ const blink::WebRTCKeyParams& key_params,
+ const blink::WebURL& url,
+ const blink::WebURL& first_party_for_cookies,
+ blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) override;
+
+ bool isValidKeyParams(const blink::WebRTCKeyParams& key_params) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698