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

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

Issue 2721163002: Add support for RTCConfiguration.iceCandidatePoolSize. (Closed)
Patch Set: Adding back log statement for test. 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 const HeapVector<Member<RTCCertificate>>& certificates = 329 const HeapVector<Member<RTCCertificate>>& certificates =
330 configuration.certificates(); 330 configuration.certificates();
331 WebVector<std::unique_ptr<WebRTCCertificate>> certificatesCopy( 331 WebVector<std::unique_ptr<WebRTCCertificate>> certificatesCopy(
332 certificates.size()); 332 certificates.size());
333 for (size_t i = 0; i < certificates.size(); ++i) { 333 for (size_t i = 0; i < certificates.size(); ++i) {
334 certificatesCopy[i] = certificates[i]->certificateShallowCopy(); 334 certificatesCopy[i] = certificates[i]->certificateShallowCopy();
335 } 335 }
336 webConfiguration.certificates = std::move(certificatesCopy); 336 webConfiguration.certificates = std::move(certificatesCopy);
337 } 337 }
338 338
339 webConfiguration.iceCandidatePoolSize = configuration.iceCandidatePoolSize();
339 return webConfiguration; 340 return webConfiguration;
340 } 341 }
341 342
342 RTCOfferOptionsPlatform* parseOfferOptions(const Dictionary& options, 343 RTCOfferOptionsPlatform* parseOfferOptions(const Dictionary& options,
343 ExceptionState& exceptionState) { 344 ExceptionState& exceptionState) {
344 if (options.isUndefinedOrNull()) 345 if (options.isUndefinedOrNull())
345 return nullptr; 346 return nullptr;
346 347
347 const Vector<String>& propertyNames = 348 const Vector<String>& propertyNames =
348 options.getPropertyNames(exceptionState); 349 options.getPropertyNames(exceptionState);
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 DEFINE_TRACE(RTCPeerConnection) { 1495 DEFINE_TRACE(RTCPeerConnection) {
1495 visitor->trace(m_localStreams); 1496 visitor->trace(m_localStreams);
1496 visitor->trace(m_remoteStreams); 1497 visitor->trace(m_remoteStreams);
1497 visitor->trace(m_dispatchScheduledEventRunner); 1498 visitor->trace(m_dispatchScheduledEventRunner);
1498 visitor->trace(m_scheduledEvents); 1499 visitor->trace(m_scheduledEvents);
1499 EventTargetWithInlineData::trace(visitor); 1500 EventTargetWithInlineData::trace(visitor);
1500 SuspendableObject::trace(visitor); 1501 SuspendableObject::trace(visitor);
1501 } 1502 }
1502 1503
1503 } // namespace blink 1504 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698