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

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

Issue 1740993002: RTCPeerConnection.generateCertificate: Optionally specify expiration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
index 46dfbb0a8827c511e5fd665554ae898495dad657..22248bb0e373ae070c13915d05bd8102ea0597be 100644
--- a/content/renderer/media/rtc_certificate_generator.h
+++ b/content/renderer/media/rtc_certificate_generator.h
@@ -9,6 +9,7 @@
#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"
namespace content {
@@ -26,9 +27,22 @@ class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator {
const blink::WebURL& url,
const blink::WebURL& first_party_for_cookies,
blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) override;
+ void generateCertificate(
+ const blink::WebRTCKeyParams& key_params,
+ const blink::WebURL& url,
+ const blink::WebURL& first_party_for_cookies,
+ uint64_t expires_ms,
+ blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) override;
hbos_chromium 2016/03/04 09:26:31 I would have preferred something equivalent to rtc
tommi (sloooow) - chröme 2016/03/04 09:55:40 Makes sense to me. I think we'll move from rtc::O
hbos_chromium 2016/03/08 15:02:10 Acknowledged.
bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override;
private:
+ void generateCertificateExpires(
+ const blink::WebRTCKeyParams& key_params,
+ const blink::WebURL& url,
+ const blink::WebURL& first_party_for_cookies,
+ rtc::Optional<uint64_t> expires_ms,
tommi (sloooow) - chröme 2016/03/04 09:55:40 const &?
hbos_chromium 2016/03/04 12:24:11 Yes! Will fix after webrtc land + roll.
+ blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer);
+
DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator);
};

Powered by Google App Engine
This is Rietveld 408576698