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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp

Issue 2721163002: Add support for RTCConfiguration.iceCandidatePoolSize. (Closed)
Patch Set: Merge with master Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 const HeapVector<Member<RTCCertificate>>& certificates = 330 const HeapVector<Member<RTCCertificate>>& certificates =
331 configuration.certificates(); 331 configuration.certificates();
332 WebVector<std::unique_ptr<WebRTCCertificate>> certificatesCopy( 332 WebVector<std::unique_ptr<WebRTCCertificate>> certificatesCopy(
333 certificates.size()); 333 certificates.size());
334 for (size_t i = 0; i < certificates.size(); ++i) { 334 for (size_t i = 0; i < certificates.size(); ++i) {
335 certificatesCopy[i] = certificates[i]->certificateShallowCopy(); 335 certificatesCopy[i] = certificates[i]->certificateShallowCopy();
336 } 336 }
337 webConfiguration.certificates = std::move(certificatesCopy); 337 webConfiguration.certificates = std::move(certificatesCopy);
338 } 338 }
339 339
340 webConfiguration.iceCandidatePoolSize = configuration.iceCandidatePoolSize();
340 return webConfiguration; 341 return webConfiguration;
341 } 342 }
342 343
343 RTCOfferOptionsPlatform* parseOfferOptions(const Dictionary& options, 344 RTCOfferOptionsPlatform* parseOfferOptions(const Dictionary& options,
344 ExceptionState& exceptionState) { 345 ExceptionState& exceptionState) {
345 if (options.isUndefinedOrNull()) 346 if (options.isUndefinedOrNull())
346 return nullptr; 347 return nullptr;
347 348
348 const Vector<String>& propertyNames = 349 const Vector<String>& propertyNames =
349 options.getPropertyNames(exceptionState); 350 options.getPropertyNames(exceptionState);
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 DEFINE_TRACE(RTCPeerConnection) { 1500 DEFINE_TRACE(RTCPeerConnection) {
1500 visitor->trace(m_localStreams); 1501 visitor->trace(m_localStreams);
1501 visitor->trace(m_remoteStreams); 1502 visitor->trace(m_remoteStreams);
1502 visitor->trace(m_dispatchScheduledEventRunner); 1503 visitor->trace(m_dispatchScheduledEventRunner);
1503 visitor->trace(m_scheduledEvents); 1504 visitor->trace(m_scheduledEvents);
1504 EventTargetWithInlineData::trace(visitor); 1505 EventTargetWithInlineData::trace(visitor);
1505 SuspendableObject::trace(visitor); 1506 SuspendableObject::trace(visitor);
1506 } 1507 }
1507 1508
1508 } // namespace blink 1509 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698