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

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

Issue 1972853003: content::RTCCertificateGenerator and WebRTC-EnableWebRtcEcdsa update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 7 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 | « no previous file | content/renderer/media/rtc_certificate_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 3858db265cc947ca2fce961a908d64d4988702d8..e3075030b374f9339cd4d2f1deeb8812aa3d4f7d 100644
--- a/content/renderer/media/rtc_certificate_generator.h
+++ b/content/renderer/media/rtc_certificate_generator.h
@@ -6,10 +6,12 @@
#define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
#include "base/macros.h"
+#include "base/memory/ref_counted.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"
#include "third_party/webrtc/base/optional.h"
+#include "third_party/webrtc/base/rtccertificate.h"
namespace content {
@@ -38,6 +40,10 @@ class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator {
const std::string& pem_private_key,
const std::string& pem_certificate) override;
+ static scoped_refptr<rtc::RTCCertificate> generateCertificateAndWait(
+ const rtc::KeyParams& key_params,
+ const rtc::Optional<uint64_t>& expires_ms);
+
private:
void generateCertificateWithOptionalExpiration(
const blink::WebRTCKeyParams& key_params,
« no previous file with comments | « no previous file | content/renderer/media/rtc_certificate_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698