Index: webrtc/api/peerconnectionfactory.h |
diff --git a/webrtc/api/peerconnectionfactory.h b/webrtc/api/peerconnectionfactory.h |
index 21165cf3d2851105d160a987e948d0768420147f..66561ad9d38209fd0a252f36d4e6985248d65d1e 100644 |
--- a/webrtc/api/peerconnectionfactory.h |
+++ b/webrtc/api/peerconnectionfactory.h |
@@ -14,12 +14,12 @@ |
#include <memory> |
#include <string> |
-#include "webrtc/api/dtlsidentitystore.h" |
#include "webrtc/api/mediacontroller.h" |
#include "webrtc/api/mediastreaminterface.h" |
#include "webrtc/api/peerconnectioninterface.h" |
#include "webrtc/base/scoped_ref_ptr.h" |
#include "webrtc/base/thread.h" |
+#include "webrtc/base/rtccertificategenerator.h" |
#include "webrtc/pc/channelmanager.h" |
namespace rtc { |
@@ -29,8 +29,8 @@ class BasicPacketSocketFactory; |
namespace webrtc { |
-typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> |
- RefCountedDtlsIdentityStore; |
+typedef rtc::RefCountedObject<rtc::RTCCertificateGenerator> |
+ RefCountedRTCCertificateGenerator; |
class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
public: |
@@ -43,13 +43,13 @@ class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
const PeerConnectionInterface::RTCConfiguration& configuration, |
const MediaConstraintsInterface* constraints, |
std::unique_ptr<cricket::PortAllocator> allocator, |
- std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
+ std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator, |
PeerConnectionObserver* observer) override; |
virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
const PeerConnectionInterface::RTCConfiguration& configuration, |
std::unique_ptr<cricket::PortAllocator> allocator, |
- std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
+ std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator, |
PeerConnectionObserver* observer) override; |
bool Initialize(); |
@@ -129,7 +129,7 @@ class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
std::unique_ptr<rtc::BasicNetworkManager> default_network_manager_; |
std::unique_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; |
- rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; |
+ rtc::scoped_refptr<RefCountedRTCCertificateGenerator> cert_generator_; |
}; |
} // namespace webrtc |