OLD | NEW |
---|---|
(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 void generateCertificate( | |
jochen (gone - plz use gerrit)
2015/10/20 12:27:35
same here
hbos_chromium
2015/10/20 15:42:23
Done.
| |
24 const blink::WebRTCKeyParams& key_params, | |
25 const blink::WebURL& url, | |
26 const blink::WebURL& first_party_for_cookies, | |
27 blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) override; | |
28 | |
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_ | |
OLD | NEW |