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 11 matching lines...) Expand all Loading... |
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/mediastream/RTCPeerConnection.h" | 32 #include "modules/rtcpeerconnection/RTCPeerConnection.h" |
33 | 33 |
34 #include "bindings/core/v8/ArrayValue.h" | 34 #include "bindings/core/v8/ArrayValue.h" |
35 #include "bindings/core/v8/ExceptionMessages.h" | 35 #include "bindings/core/v8/ExceptionMessages.h" |
36 #include "bindings/core/v8/ExceptionState.h" | 36 #include "bindings/core/v8/ExceptionState.h" |
37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/dom/ExceptionCode.h" | 38 #include "core/dom/ExceptionCode.h" |
39 #include "core/dom/ExecutionContext.h" | 39 #include "core/dom/ExecutionContext.h" |
40 #include "core/frame/LocalFrame.h" | 40 #include "core/frame/LocalFrame.h" |
41 #include "core/html/VoidCallback.h" | 41 #include "core/html/VoidCallback.h" |
42 #include "core/loader/FrameLoader.h" | 42 #include "core/loader/FrameLoader.h" |
43 #include "core/loader/FrameLoaderClient.h" | 43 #include "core/loader/FrameLoaderClient.h" |
44 #include "modules/mediastream/MediaConstraintsImpl.h" | 44 #include "core/mediastream/MediaConstraintsImpl.h" |
45 #include "modules/mediastream/MediaStreamEvent.h" | 45 #include "core/mediastream/MediaStreamEvent.h" |
46 #include "modules/mediastream/RTCDTMFSender.h" | 46 #include "modules/rtcpeerconnection/RTCDTMFSender.h" |
47 #include "modules/mediastream/RTCDataChannel.h" | 47 #include "modules/rtcpeerconnection/RTCDataChannel.h" |
48 #include "modules/mediastream/RTCDataChannelEvent.h" | 48 #include "modules/rtcpeerconnection/RTCDataChannelEvent.h" |
49 #include "modules/mediastream/RTCErrorCallback.h" | 49 #include "modules/rtcpeerconnection/RTCErrorCallback.h" |
50 #include "modules/mediastream/RTCIceCandidateEvent.h" | 50 #include "modules/rtcpeerconnection/RTCIceCandidateEvent.h" |
51 #include "modules/mediastream/RTCSessionDescription.h" | 51 #include "modules/rtcpeerconnection/RTCSessionDescription.h" |
52 #include "modules/mediastream/RTCSessionDescriptionCallback.h" | 52 #include "modules/rtcpeerconnection/RTCSessionDescriptionCallback.h" |
53 #include "modules/mediastream/RTCSessionDescriptionRequestImpl.h" | 53 #include "modules/rtcpeerconnection/RTCSessionDescriptionRequestImpl.h" |
54 #include "modules/mediastream/RTCStatsCallback.h" | 54 #include "modules/rtcpeerconnection/RTCStatsCallback.h" |
55 #include "modules/mediastream/RTCStatsRequestImpl.h" | 55 #include "modules/rtcpeerconnection/RTCStatsRequestImpl.h" |
56 #include "modules/mediastream/RTCVoidRequestImpl.h" | 56 #include "modules/rtcpeerconnection/RTCVoidRequestImpl.h" |
57 #include "platform/mediastream/RTCConfiguration.h" | 57 #include "platform/mediastream/RTCConfiguration.h" |
58 #include "platform/mediastream/RTCOfferOptions.h" | 58 #include "platform/mediastream/RTCOfferOptions.h" |
59 #include "public/platform/Platform.h" | 59 #include "public/platform/Platform.h" |
60 #include "public/platform/WebMediaStream.h" | 60 #include "public/platform/WebMediaStream.h" |
61 #include "public/platform/WebRTCConfiguration.h" | 61 #include "public/platform/WebRTCConfiguration.h" |
62 #include "public/platform/WebRTCDataChannelHandler.h" | 62 #include "public/platform/WebRTCDataChannelHandler.h" |
63 #include "public/platform/WebRTCDataChannelInit.h" | 63 #include "public/platform/WebRTCDataChannelInit.h" |
64 #include "public/platform/WebRTCICECandidate.h" | 64 #include "public/platform/WebRTCICECandidate.h" |
65 #include "public/platform/WebRTCOfferOptions.h" | 65 #include "public/platform/WebRTCOfferOptions.h" |
66 #include "public/platform/WebRTCSessionDescription.h" | 66 #include "public/platform/WebRTCSessionDescription.h" |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 void RTCPeerConnection::negotiationNeeded() | 611 void RTCPeerConnection::negotiationNeeded() |
612 { | 612 { |
613 ASSERT(!m_closed); | 613 ASSERT(!m_closed); |
614 scheduleDispatchEvent(Event::create(EventTypeNames::negotiationneeded)); | 614 scheduleDispatchEvent(Event::create(EventTypeNames::negotiationneeded)); |
615 } | 615 } |
616 | 616 |
617 void RTCPeerConnection::didGenerateICECandidate(const WebRTCICECandidate& webCan
didate) | 617 void RTCPeerConnection::didGenerateICECandidate(const WebRTCICECandidate& webCan
didate) |
618 { | 618 { |
619 ASSERT(!m_closed); | 619 ASSERT(!m_closed); |
620 ASSERT(executionContext()->isContextThread()); | 620 ASSERT(executionContext()->isContextThread()); |
621 if (webCandidate.isNull()) | 621 if (webCandidate.isNull()) { |
622 scheduleDispatchEvent(RTCIceCandidateEvent::create(false, false, nullptr
)); | 622 scheduleDispatchEvent(RTCIceCandidateEvent::create(false, false, nullptr
)); |
623 else { | 623 } else { |
624 RTCIceCandidate* iceCandidate = RTCIceCandidate::create(webCandidate); | 624 RTCIceCandidate* iceCandidate = RTCIceCandidate::create(webCandidate); |
625 scheduleDispatchEvent(RTCIceCandidateEvent::create(false, false, iceCand
idate)); | 625 scheduleDispatchEvent(RTCIceCandidateEvent::create(false, false, iceCand
idate)); |
626 } | 626 } |
627 } | 627 } |
628 | 628 |
629 void RTCPeerConnection::didChangeSignalingState(SignalingState newState) | 629 void RTCPeerConnection::didChangeSignalingState(SignalingState newState) |
630 { | 630 { |
631 ASSERT(!m_closed); | 631 ASSERT(!m_closed); |
632 ASSERT(executionContext()->isContextThread()); | 632 ASSERT(executionContext()->isContextThread()); |
633 changeSignalingState(newState); | 633 changeSignalingState(newState); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 visitor->trace(m_localStreams); | 805 visitor->trace(m_localStreams); |
806 visitor->trace(m_remoteStreams); | 806 visitor->trace(m_remoteStreams); |
807 visitor->trace(m_dataChannels); | 807 visitor->trace(m_dataChannels); |
808 #if ENABLE(OILPAN) | 808 #if ENABLE(OILPAN) |
809 visitor->trace(m_scheduledEvents); | 809 visitor->trace(m_scheduledEvents); |
810 #endif | 810 #endif |
811 EventTargetWithInlineData::trace(visitor); | 811 EventTargetWithInlineData::trace(visitor); |
812 } | 812 } |
813 | 813 |
814 } // namespace blink | 814 } // namespace blink |
OLD | NEW |