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

Side by Side 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 jochen's comments 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
7
8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebRTCCertificate.h"
10 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h"
11 #include "third_party/WebKit/public/platform/WebRTCKeyParams.h"
12
13 namespace content {
14
15 // Chromium's WebRTCCertificateGenerator implementation; uses the
16 // PeerConnectionIdentityStore/SSLIdentity::Generate to generate the identity,
17 // rtc::RTCCertificate and content::RTCCertificate.
18 class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator {
19 public:
20 RTCCertificateGenerator() {}
21 ~RTCCertificateGenerator() override {}
22
23 // blink::WebRTCCertificateGenerator implementation.
24 void generateCertificate(
25 const blink::WebRTCKeyParams& key_params,
26 const blink::WebURL& url,
27 const blink::WebURL& first_party_for_cookies,
28 blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) override;
29 bool isValidKeyParams(const blink::WebRTCKeyParams& key_params) override;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698