Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: talk/app/webrtc/objc/RTCPeerConnection.mm

Issue 1269843005: Added DtlsCertificate, a ref counted object owning an SSLIdentity (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/objc/RTCPeerConnection.mm
diff --git a/talk/app/webrtc/objc/RTCPeerConnection.mm b/talk/app/webrtc/objc/RTCPeerConnection.mm
index 0d30acc0eb23ba6b00c8ea16eacfba8cf7d78fbc..9823a6bf8130413d3ccf3e28a873d6a399258bc8 100644
--- a/talk/app/webrtc/objc/RTCPeerConnection.mm
+++ b/talk/app/webrtc/objc/RTCPeerConnection.mm
@@ -275,11 +275,15 @@ class RTCStatsObserver : public StatsObserver {
- (instancetype)initWithFactory:(webrtc::PeerConnectionFactoryInterface*)factory
iceServers:(const webrtc::PeerConnectionInterface::IceServers&)iceServers
constraints:(const webrtc::MediaConstraintsInterface*)constraints {
- NSParameterAssert(factory != NULL);
+ NSParameterAssert(factory != nullptr);
if (self = [super init]) {
_observer.reset(new webrtc::RTCPeerConnectionObserver(self));
_peerConnection = factory->CreatePeerConnection(
- iceServers, constraints, NULL, NULL, _observer.get());
+ iceServers,
+ constraints,
+ nullptr,
+ rtc::scoped_ptr<webrtc::DtlsIdentityStoreInterface>(nullptr).Pass(),
+ _observer.get());
_localStreams = [[NSMutableArray alloc] init];
}
return self;
@@ -293,7 +297,12 @@ class RTCStatsObserver : public StatsObserver {
if (self = [super init]) {
_observer.reset(new webrtc::RTCPeerConnectionObserver(self));
_peerConnection =
- factory->CreatePeerConnection(config, constraints, nullptr, nullptr, _observer.get());
+ factory->CreatePeerConnection(
+ config,
+ constraints,
+ nullptr,
+ rtc::scoped_ptr<webrtc::DtlsIdentityStoreInterface>(nullptr).Pass(),
+ _observer.get());
_localStreams = [[NSMutableArray alloc] init];
_delegate = delegate;
}

Powered by Google App Engine
This is Rietveld 408576698