| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // blink::WebRTCCertificateGenerator implementation. | 24 // blink::WebRTCCertificateGenerator implementation. |
| 25 void generateCertificate( | 25 void generateCertificate( |
| 26 const blink::WebRTCKeyParams& key_params, | 26 const blink::WebRTCKeyParams& key_params, |
| 27 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; | 27 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; |
| 28 void generateCertificateWithExpiration( | 28 void generateCertificateWithExpiration( |
| 29 const blink::WebRTCKeyParams& key_params, | 29 const blink::WebRTCKeyParams& key_params, |
| 30 uint64_t expires_ms, | 30 uint64_t expires_ms, |
| 31 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; | 31 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; |
| 32 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; | 32 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; |
| 33 std::unique_ptr<blink::WebRTCCertificate> fromPEM( | 33 std::unique_ptr<blink::WebRTCCertificate> fromPEM( |
| 34 const std::string& pem_private_key, | 34 blink::WebString pem_private_key, |
| 35 const std::string& pem_certificate) override; | 35 blink::WebString pem_certificate) override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 void generateCertificateWithOptionalExpiration( | 38 void generateCertificateWithOptionalExpiration( |
| 39 const blink::WebRTCKeyParams& key_params, | 39 const blink::WebRTCKeyParams& key_params, |
| 40 const rtc::Optional<uint64_t>& expires_ms, | 40 const rtc::Optional<uint64_t>& expires_ms, |
| 41 std::unique_ptr<blink::WebRTCCertificateCallback> observer); | 41 std::unique_ptr<blink::WebRTCCertificateCallback> observer); |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); | 43 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace content | 46 } // namespace content |
| 47 | 47 |
| 48 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ | 48 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ |
| OLD | NEW |