| OLD | NEW |
| 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 28 matching lines...) Expand all Loading... |
| 39 #include "bindings/core/v8/ScriptValue.h" | 39 #include "bindings/core/v8/ScriptValue.h" |
| 40 #include "bindings/core/v8/V8ThrowException.h" | 40 #include "bindings/core/v8/V8ThrowException.h" |
| 41 #include "bindings/modules/v8/RTCIceCandidateInitOrRTCIceCandidate.h" | 41 #include "bindings/modules/v8/RTCIceCandidateInitOrRTCIceCandidate.h" |
| 42 #include "bindings/modules/v8/V8MediaStreamTrack.h" | 42 #include "bindings/modules/v8/V8MediaStreamTrack.h" |
| 43 #include "bindings/modules/v8/V8RTCCertificate.h" | 43 #include "bindings/modules/v8/V8RTCCertificate.h" |
| 44 #include "core/dom/DOMException.h" | 44 #include "core/dom/DOMException.h" |
| 45 #include "core/dom/DOMTimeStamp.h" | 45 #include "core/dom/DOMTimeStamp.h" |
| 46 #include "core/dom/Document.h" | 46 #include "core/dom/Document.h" |
| 47 #include "core/dom/ExceptionCode.h" | 47 #include "core/dom/ExceptionCode.h" |
| 48 #include "core/dom/ExecutionContext.h" | 48 #include "core/dom/ExecutionContext.h" |
| 49 #include "core/frame/Deprecation.h" |
| 49 #include "core/frame/HostsUsingFeatures.h" | 50 #include "core/frame/HostsUsingFeatures.h" |
| 50 #include "core/frame/LocalFrame.h" | 51 #include "core/frame/LocalFrame.h" |
| 51 #include "core/frame/UseCounter.h" | 52 #include "core/frame/UseCounter.h" |
| 52 #include "core/html/VoidCallback.h" | 53 #include "core/html/VoidCallback.h" |
| 53 #include "core/loader/FrameLoader.h" | 54 #include "core/loader/FrameLoader.h" |
| 54 #include "core/loader/FrameLoaderClient.h" | 55 #include "core/loader/FrameLoaderClient.h" |
| 55 #include "modules/crypto/CryptoResultImpl.h" | 56 #include "modules/crypto/CryptoResultImpl.h" |
| 56 #include "modules/mediastream/MediaConstraintsImpl.h" | 57 #include "modules/mediastream/MediaConstraintsImpl.h" |
| 57 #include "modules/mediastream/MediaStreamEvent.h" | 58 #include "modules/mediastream/MediaStreamEvent.h" |
| 58 #include "modules/peerconnection/RTCAnswerOptions.h" | 59 #include "modules/peerconnection/RTCAnswerOptions.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } else if (bundlePolicyString == "max-bundle") { | 257 } else if (bundlePolicyString == "max-bundle") { |
| 257 bundlePolicy = WebRTCBundlePolicy::kMaxBundle; | 258 bundlePolicy = WebRTCBundlePolicy::kMaxBundle; |
| 258 } else { | 259 } else { |
| 259 DCHECK_EQ(bundlePolicyString, "balanced"); | 260 DCHECK_EQ(bundlePolicyString, "balanced"); |
| 260 } | 261 } |
| 261 | 262 |
| 262 WebRTCRtcpMuxPolicy rtcpMuxPolicy = WebRTCRtcpMuxPolicy::kRequire; | 263 WebRTCRtcpMuxPolicy rtcpMuxPolicy = WebRTCRtcpMuxPolicy::kRequire; |
| 263 String rtcpMuxPolicyString = configuration.rtcpMuxPolicy(); | 264 String rtcpMuxPolicyString = configuration.rtcpMuxPolicy(); |
| 264 if (rtcpMuxPolicyString == "negotiate") { | 265 if (rtcpMuxPolicyString == "negotiate") { |
| 265 rtcpMuxPolicy = WebRTCRtcpMuxPolicy::kNegotiate; | 266 rtcpMuxPolicy = WebRTCRtcpMuxPolicy::kNegotiate; |
| 267 Deprecation::countDeprecation(context, UseCounter::RtcpMuxPolicyNegotiate); |
| 266 } else { | 268 } else { |
| 267 DCHECK_EQ(rtcpMuxPolicyString, "require"); | 269 DCHECK_EQ(rtcpMuxPolicyString, "require"); |
| 268 } | 270 } |
| 269 WebRTCConfiguration webConfiguration; | 271 WebRTCConfiguration webConfiguration; |
| 270 webConfiguration.iceTransportPolicy = iceTransportPolicy; | 272 webConfiguration.iceTransportPolicy = iceTransportPolicy; |
| 271 webConfiguration.bundlePolicy = bundlePolicy; | 273 webConfiguration.bundlePolicy = bundlePolicy; |
| 272 webConfiguration.rtcpMuxPolicy = rtcpMuxPolicy; | 274 webConfiguration.rtcpMuxPolicy = rtcpMuxPolicy; |
| 273 | 275 |
| 274 if (configuration.hasIceServers()) { | 276 if (configuration.hasIceServers()) { |
| 275 Vector<WebRTCIceServer> iceServers; | 277 Vector<WebRTCIceServer> iceServers; |
| (...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 DEFINE_TRACE(RTCPeerConnection) { | 1484 DEFINE_TRACE(RTCPeerConnection) { |
| 1483 visitor->trace(m_localStreams); | 1485 visitor->trace(m_localStreams); |
| 1484 visitor->trace(m_remoteStreams); | 1486 visitor->trace(m_remoteStreams); |
| 1485 visitor->trace(m_dispatchScheduledEventRunner); | 1487 visitor->trace(m_dispatchScheduledEventRunner); |
| 1486 visitor->trace(m_scheduledEvents); | 1488 visitor->trace(m_scheduledEvents); |
| 1487 EventTargetWithInlineData::trace(visitor); | 1489 EventTargetWithInlineData::trace(visitor); |
| 1488 SuspendableObject::trace(visitor); | 1490 SuspendableObject::trace(visitor); |
| 1489 } | 1491 } |
| 1490 | 1492 |
| 1491 } // namespace blink | 1493 } // namespace blink |
| OLD | NEW |