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 // 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_ |
OLD | NEW |