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

Side by Side Diff: talk/app/webrtc/objc/RTCPeerConnection.mm

Issue 2000163002: Replacing DtlsIdentityStoreInterface with RTCCertificateGeneratorInterface (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase with master after CL 2001103002 landed Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/java/jni/peerconnection_jni.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 - (instancetype)initWithFactory:(webrtc::PeerConnectionFactoryInterface*)factory 273 - (instancetype)initWithFactory:(webrtc::PeerConnectionFactoryInterface*)factory
274 iceServers:(const webrtc::PeerConnectionInterface::IceServers&)iceServers 274 iceServers:(const webrtc::PeerConnectionInterface::IceServers&)iceServers
275 constraints:(const webrtc::MediaConstraintsInterface*)constraints { 275 constraints:(const webrtc::MediaConstraintsInterface*)constraints {
276 NSParameterAssert(factory != nullptr); 276 NSParameterAssert(factory != nullptr);
277 if (self = [super init]) { 277 if (self = [super init]) {
278 webrtc::PeerConnectionInterface::RTCConfiguration config; 278 webrtc::PeerConnectionInterface::RTCConfiguration config;
279 config.servers = iceServers; 279 config.servers = iceServers;
280 _observer.reset(new webrtc::RTCPeerConnectionObserver(self)); 280 _observer.reset(new webrtc::RTCPeerConnectionObserver(self));
281 _peerConnection = factory->CreatePeerConnection( 281 _peerConnection = factory->CreatePeerConnection(
282 config, constraints, nullptr, nullptr, _observer.get()); 282 config,
283 constraints,
284 nullptr,
285 std::unique_ptr<rtc::RTCCertificateGeneratorInterface>(),
286 _observer.get());
283 _localStreams = [[NSMutableArray alloc] init]; 287 _localStreams = [[NSMutableArray alloc] init];
284 } 288 }
285 return self; 289 return self;
286 } 290 }
287 291
288 - (instancetype)initWithFactory:(webrtc::PeerConnectionFactoryInterface *)factor y 292 - (instancetype)initWithFactory:(webrtc::PeerConnectionFactoryInterface *)factor y
289 config:(const webrtc::PeerConnectionInterface::RTCConfi guration &)config 293 config:(const webrtc::PeerConnectionInterface::RTCConfi guration &)config
290 constraints:(const webrtc::MediaConstraintsInterface *)const raints 294 constraints:(const webrtc::MediaConstraintsInterface *)const raints
291 delegate:(id<RTCPeerConnectionDelegate>)delegate { 295 delegate:(id<RTCPeerConnectionDelegate>)delegate {
292 NSParameterAssert(factory); 296 NSParameterAssert(factory);
293 if (self = [super init]) { 297 if (self = [super init]) {
294 _observer.reset(new webrtc::RTCPeerConnectionObserver(self)); 298 _observer.reset(new webrtc::RTCPeerConnectionObserver(self));
295 _peerConnection = 299 _peerConnection =
296 factory->CreatePeerConnection(config, constraints, nullptr, nullptr, _ob server.get()); 300 factory->CreatePeerConnection(
301 config,
302 constraints,
303 nullptr,
304 std::unique_ptr<rtc::RTCCertificateGeneratorInterface>(),
305 _observer.get());
297 _localStreams = [[NSMutableArray alloc] init]; 306 _localStreams = [[NSMutableArray alloc] init];
298 _delegate = delegate; 307 _delegate = delegate;
299 } 308 }
300 return self; 309 return self;
301 } 310 }
302 311
303 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)peerConnection { 312 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)peerConnection {
304 return _peerConnection; 313 return _peerConnection;
305 } 314 }
306 315
307 @end 316 @end
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/java/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698