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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "core/loader/FrameLoader.h" | 53 #include "core/loader/FrameLoader.h" |
54 #include "core/loader/FrameLoaderClient.h" | 54 #include "core/loader/FrameLoaderClient.h" |
55 #include "modules/crypto/CryptoResultImpl.h" | 55 #include "modules/crypto/CryptoResultImpl.h" |
56 #include "modules/mediastream/MediaConstraintsImpl.h" | 56 #include "modules/mediastream/MediaConstraintsImpl.h" |
57 #include "modules/mediastream/MediaStreamEvent.h" | 57 #include "modules/mediastream/MediaStreamEvent.h" |
58 #include "modules/peerconnection/RTCAnswerOptions.h" | 58 #include "modules/peerconnection/RTCAnswerOptions.h" |
59 #include "modules/peerconnection/RTCConfiguration.h" | 59 #include "modules/peerconnection/RTCConfiguration.h" |
60 #include "modules/peerconnection/RTCDTMFSender.h" | 60 #include "modules/peerconnection/RTCDTMFSender.h" |
61 #include "modules/peerconnection/RTCDataChannel.h" | 61 #include "modules/peerconnection/RTCDataChannel.h" |
62 #include "modules/peerconnection/RTCDataChannelEvent.h" | 62 #include "modules/peerconnection/RTCDataChannelEvent.h" |
63 #include "modules/peerconnection/RTCIceCandidateEvent.h" | |
64 #include "modules/peerconnection/RTCIceServer.h" | 63 #include "modules/peerconnection/RTCIceServer.h" |
65 #include "modules/peerconnection/RTCOfferOptions.h" | 64 #include "modules/peerconnection/RTCOfferOptions.h" |
66 #include "modules/peerconnection/RTCPeerConnectionErrorCallback.h" | 65 #include "modules/peerconnection/RTCPeerConnectionErrorCallback.h" |
| 66 #include "modules/peerconnection/RTCPeerConnectionIceEvent.h" |
67 #include "modules/peerconnection/RTCSessionDescription.h" | 67 #include "modules/peerconnection/RTCSessionDescription.h" |
68 #include "modules/peerconnection/RTCSessionDescriptionCallback.h" | 68 #include "modules/peerconnection/RTCSessionDescriptionCallback.h" |
69 #include "modules/peerconnection/RTCSessionDescriptionInit.h" | 69 #include "modules/peerconnection/RTCSessionDescriptionInit.h" |
70 #include "modules/peerconnection/RTCSessionDescriptionRequestImpl.h" | 70 #include "modules/peerconnection/RTCSessionDescriptionRequestImpl.h" |
71 #include "modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.h" | 71 #include "modules/peerconnection/RTCSessionDescriptionRequestPromiseImpl.h" |
72 #include "modules/peerconnection/RTCStatsCallback.h" | 72 #include "modules/peerconnection/RTCStatsCallback.h" |
73 #include "modules/peerconnection/RTCStatsReport.h" | 73 #include "modules/peerconnection/RTCStatsReport.h" |
74 #include "modules/peerconnection/RTCStatsRequestImpl.h" | 74 #include "modules/peerconnection/RTCStatsRequestImpl.h" |
75 #include "modules/peerconnection/RTCVoidRequestImpl.h" | 75 #include "modules/peerconnection/RTCVoidRequestImpl.h" |
76 #include "modules/peerconnection/RTCVoidRequestPromiseImpl.h" | 76 #include "modules/peerconnection/RTCVoidRequestPromiseImpl.h" |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 void RTCPeerConnection::negotiationNeeded() { | 1252 void RTCPeerConnection::negotiationNeeded() { |
1253 DCHECK(!m_closed); | 1253 DCHECK(!m_closed); |
1254 scheduleDispatchEvent(Event::create(EventTypeNames::negotiationneeded)); | 1254 scheduleDispatchEvent(Event::create(EventTypeNames::negotiationneeded)); |
1255 } | 1255 } |
1256 | 1256 |
1257 void RTCPeerConnection::didGenerateICECandidate( | 1257 void RTCPeerConnection::didGenerateICECandidate( |
1258 const WebRTCICECandidate& webCandidate) { | 1258 const WebRTCICECandidate& webCandidate) { |
1259 DCHECK(!m_closed); | 1259 DCHECK(!m_closed); |
1260 DCHECK(getExecutionContext()->isContextThread()); | 1260 DCHECK(getExecutionContext()->isContextThread()); |
1261 if (webCandidate.isNull()) { | 1261 if (webCandidate.isNull()) { |
1262 scheduleDispatchEvent(RTCIceCandidateEvent::create(false, false, nullptr)); | 1262 scheduleDispatchEvent( |
| 1263 RTCPeerConnectionIceEvent::create(false, false, nullptr)); |
1263 } else { | 1264 } else { |
1264 RTCIceCandidate* iceCandidate = RTCIceCandidate::create(webCandidate); | 1265 RTCIceCandidate* iceCandidate = RTCIceCandidate::create(webCandidate); |
1265 scheduleDispatchEvent( | 1266 scheduleDispatchEvent( |
1266 RTCIceCandidateEvent::create(false, false, iceCandidate)); | 1267 RTCPeerConnectionIceEvent::create(false, false, iceCandidate)); |
1267 } | 1268 } |
1268 } | 1269 } |
1269 | 1270 |
1270 void RTCPeerConnection::didChangeSignalingState(SignalingState newState) { | 1271 void RTCPeerConnection::didChangeSignalingState(SignalingState newState) { |
1271 DCHECK(!m_closed); | 1272 DCHECK(!m_closed); |
1272 DCHECK(getExecutionContext()->isContextThread()); | 1273 DCHECK(getExecutionContext()->isContextThread()); |
1273 changeSignalingState(newState); | 1274 changeSignalingState(newState); |
1274 } | 1275 } |
1275 | 1276 |
1276 void RTCPeerConnection::didChangeICEGatheringState(ICEGatheringState newState) { | 1277 void RTCPeerConnection::didChangeICEGatheringState(ICEGatheringState newState) { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1479 DEFINE_TRACE(RTCPeerConnection) { | 1480 DEFINE_TRACE(RTCPeerConnection) { |
1480 visitor->trace(m_localStreams); | 1481 visitor->trace(m_localStreams); |
1481 visitor->trace(m_remoteStreams); | 1482 visitor->trace(m_remoteStreams); |
1482 visitor->trace(m_dispatchScheduledEventRunner); | 1483 visitor->trace(m_dispatchScheduledEventRunner); |
1483 visitor->trace(m_scheduledEvents); | 1484 visitor->trace(m_scheduledEvents); |
1484 EventTargetWithInlineData::trace(visitor); | 1485 EventTargetWithInlineData::trace(visitor); |
1485 ActiveDOMObject::trace(visitor); | 1486 ActiveDOMObject::trace(visitor); |
1486 } | 1487 } |
1487 | 1488 |
1488 } // namespace blink | 1489 } // namespace blink |
OLD | NEW |