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