| 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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 } | 1415 } |
| 1416 | 1416 |
| 1417 void RTCPeerConnection::closeInternal() { | 1417 void RTCPeerConnection::closeInternal() { |
| 1418 DCHECK(m_signalingState != RTCPeerConnection::SignalingStateClosed); | 1418 DCHECK(m_signalingState != RTCPeerConnection::SignalingStateClosed); |
| 1419 m_peerHandler->stop(); | 1419 m_peerHandler->stop(); |
| 1420 m_closed = true; | 1420 m_closed = true; |
| 1421 | 1421 |
| 1422 changeIceConnectionState(ICEConnectionStateClosed); | 1422 changeIceConnectionState(ICEConnectionStateClosed); |
| 1423 changeIceGatheringState(ICEGatheringStateComplete); | 1423 changeIceGatheringState(ICEGatheringStateComplete); |
| 1424 changeSignalingState(SignalingStateClosed); | 1424 changeSignalingState(SignalingStateClosed); |
| 1425 Document* document = toDocument(getExecutionContext()); |
| 1426 HostsUsingFeatures::countAnyWorld( |
| 1427 *document, HostsUsingFeatures::Feature::RTCPeerConnectionUsed); |
| 1425 } | 1428 } |
| 1426 | 1429 |
| 1427 void RTCPeerConnection::scheduleDispatchEvent(Event* event) { | 1430 void RTCPeerConnection::scheduleDispatchEvent(Event* event) { |
| 1428 scheduleDispatchEvent(event, nullptr); | 1431 scheduleDispatchEvent(event, nullptr); |
| 1429 } | 1432 } |
| 1430 | 1433 |
| 1431 void RTCPeerConnection::scheduleDispatchEvent( | 1434 void RTCPeerConnection::scheduleDispatchEvent( |
| 1432 Event* event, | 1435 Event* event, |
| 1433 std::unique_ptr<BoolFunction> setupFunction) { | 1436 std::unique_ptr<BoolFunction> setupFunction) { |
| 1434 m_scheduledEvents.push_back( | 1437 m_scheduledEvents.push_back( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 DEFINE_TRACE(RTCPeerConnection) { | 1485 DEFINE_TRACE(RTCPeerConnection) { |
| 1483 visitor->trace(m_localStreams); | 1486 visitor->trace(m_localStreams); |
| 1484 visitor->trace(m_remoteStreams); | 1487 visitor->trace(m_remoteStreams); |
| 1485 visitor->trace(m_dispatchScheduledEventRunner); | 1488 visitor->trace(m_dispatchScheduledEventRunner); |
| 1486 visitor->trace(m_scheduledEvents); | 1489 visitor->trace(m_scheduledEvents); |
| 1487 EventTargetWithInlineData::trace(visitor); | 1490 EventTargetWithInlineData::trace(visitor); |
| 1488 SuspendableObject::trace(visitor); | 1491 SuspendableObject::trace(visitor); |
| 1489 } | 1492 } |
| 1490 | 1493 |
| 1491 } // namespace blink | 1494 } // namespace blink |
| OLD | NEW |