Chromium Code Reviews| Index: webrtc/api/dtlsidentitystore.h |
| diff --git a/webrtc/api/dtlsidentitystore.h b/webrtc/api/dtlsidentitystore.h |
| index e25b79591a76ee7465f6d344c99d93d4dd328b51..f6c1bef08161f00668259c6e7cd32757464281eb 100644 |
| --- a/webrtc/api/dtlsidentitystore.h |
| +++ b/webrtc/api/dtlsidentitystore.h |
| @@ -20,6 +20,7 @@ |
| #include "webrtc/base/messagequeue.h" |
| #include "webrtc/base/optional.h" |
| #include "webrtc/base/refcount.h" |
| +#include "webrtc/base/rtccertificategenerator.h" |
| #include "webrtc/base/scoped_ref_ptr.h" |
| #include "webrtc/base/sslidentity.h" |
| #include "webrtc/base/thread.h" |
| @@ -131,6 +132,27 @@ class DtlsIdentityStoreImpl : public DtlsIdentityStoreInterface, |
| RequestInfo request_info_[rtc::KT_LAST]; |
| }; |
| +// Implements the |RTCCertificateGeneratorInterface| using the old |SSLIdentity| |
| +// generator API, |DtlsIdentityStoreInterface|. This will used while |
|
tommi (sloooow) - chröme
2016/05/24 18:03:40
This will be used
hbos
2016/05/24 18:34:01
haow ai gramma
|
| +// transitioning from store to generator, see bugs.webrtc.org/5707, |
| +// bugs.webrtc.org/5708. Then it will be removed. |
|
tommi (sloooow) - chröme
2016/05/24 18:03:40
nit: Once those bugs have been fixed, this will be
hbos
2016/05/24 18:34:01
Done.
|
| +class RTCCertificateGeneratorStoreWrapper |
| + : public rtc::RTCCertificateGeneratorInterface { |
| + public: |
| + RTCCertificateGeneratorStoreWrapper( |
| + std::unique_ptr<DtlsIdentityStoreInterface> store); |
| + |
| + // |RTCCertificateGeneratorInterface| overrides. |
| + void GenerateCertificateAsync( |
| + const rtc::KeyParams& key_params, |
| + const rtc::Optional<uint64_t>& expires_ms, |
| + const rtc::scoped_refptr<rtc::RTCCertificateGeneratorCallback>& callback) |
| + override; |
| + |
| + private: |
| + const std::unique_ptr<DtlsIdentityStoreInterface> store_; |
| +}; |
| + |
| } // namespace webrtc |
| #endif // WEBRTC_API_DTLSIDENTITYSTORE_H_ |