| 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 16 matching lines...) Expand all Loading... |
| 27 const blink::WebURL& url, | 27 const blink::WebURL& url, |
| 28 const blink::WebURL& first_party_for_cookies, | 28 const blink::WebURL& first_party_for_cookies, |
| 29 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; | 29 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; |
| 30 void generateCertificateWithExpiration( | 30 void generateCertificateWithExpiration( |
| 31 const blink::WebRTCKeyParams& key_params, | 31 const blink::WebRTCKeyParams& key_params, |
| 32 const blink::WebURL& url, | 32 const blink::WebURL& url, |
| 33 const blink::WebURL& first_party_for_cookies, | 33 const blink::WebURL& first_party_for_cookies, |
| 34 uint64_t expires_ms, | 34 uint64_t expires_ms, |
| 35 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; | 35 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; |
| 36 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; | 36 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; |
| 37 std::unique_ptr<blink::WebRTCCertificate> fromPEM( |
| 38 const std::string& pem_private_key, |
| 39 const std::string& pem_certificate) override; |
| 37 | 40 |
| 38 private: | 41 private: |
| 39 void generateCertificateWithOptionalExpiration( | 42 void generateCertificateWithOptionalExpiration( |
| 40 const blink::WebRTCKeyParams& key_params, | 43 const blink::WebRTCKeyParams& key_params, |
| 41 const blink::WebURL& url, | 44 const blink::WebURL& url, |
| 42 const blink::WebURL& first_party_for_cookies, | 45 const blink::WebURL& first_party_for_cookies, |
| 43 const rtc::Optional<uint64_t>& expires_ms, | 46 const rtc::Optional<uint64_t>& expires_ms, |
| 44 std::unique_ptr<blink::WebRTCCertificateCallback> observer); | 47 std::unique_ptr<blink::WebRTCCertificateCallback> observer); |
| 45 | 48 |
| 46 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); | 49 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 } // namespace content | 52 } // namespace content |
| 50 | 53 |
| 51 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ | 54 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ |
| OLD | NEW |