void RTCPeerConnection::close(ExceptionState& exceptionState) { if (throwExceptionIfSignalingStateClosed(m_signalingState, exceptionState)) return; m_peerHandler->stop(); changeIceConnectionState(ICEConnectionStateClosed); changeIceGatheringState(ICEGatheringStateComplete); changeSignalingState(SignalingStateClosed); }
void RTCPeerConnection::close(ExceptionCode& ec) { if (m_signalingState == SignalingStateClosed) { ec = INVALID_STATE_ERR; return; } m_peerHandler->stop(); changeIceConnectionState(IceConnectionStateClosed); changeIceGatheringState(IceGatheringStateComplete); changeSignalingState(SignalingStateClosed); }
void RTCPeerConnection::didChangeIceConnectionState(IceConnectionState newState) { ASSERT(scriptExecutionContext()->isContextThread()); changeIceConnectionState(newState); }
void RTCPeerConnection::didChangeICEConnectionState(ICEConnectionState newState) { ASSERT(!m_closed); ASSERT(executionContext()->isContextThread()); changeIceConnectionState(newState); }