Changeset 244724 in webkit


Ignore:
Timestamp:
Apr 28, 2019 12:02:39 PM (5 years ago)
Author:
youenn@apple.com
Message:

Remove no longer needed mDNS ICE candidate resolution code
https://bugs.webkit.org/show_bug.cgi?id=197315

Reviewed by Eric Carlson.

No change of behavior.
Removed code is no longer exercised as mDNS resolution happens inside libwebrtc
using the same resolution mechanism as for TURN/STUN server names.

  • Modules/mediastream/PeerConnectionBackend.cpp:

(WebCore::PeerConnectionBackend::addIceCandidateSucceeded):
(WebCore::PeerConnectionBackend::addIceCandidateFailed):

  • Modules/mediastream/PeerConnectionBackend.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r244722 r244724  
     12019-04-28  Youenn Fablet  <youenn@apple.com>
     2
     3        Remove no longer needed mDNS ICE candidate resolution code
     4        https://bugs.webkit.org/show_bug.cgi?id=197315
     5
     6        Reviewed by Eric Carlson.
     7
     8        No change of behavior.
     9        Removed code is no longer exercised as mDNS resolution happens inside libwebrtc
     10        using the same resolution mechanism as for TURN/STUN server names.
     11
     12        * Modules/mediastream/PeerConnectionBackend.cpp:
     13        (WebCore::PeerConnectionBackend::addIceCandidateSucceeded):
     14        (WebCore::PeerConnectionBackend::addIceCandidateFailed):
     15        * Modules/mediastream/PeerConnectionBackend.h:
     16
    1172019-04-27  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp

    r239427 r244724  
    309309        return;
    310310
    311     // FIXME: Update remote description and set ICE connection state to checking if not already done so.
    312311    ASSERT(m_addIceCandidatePromise);
    313312
    314313    m_addIceCandidatePromise->resolve();
    315314    m_addIceCandidatePromise = WTF::nullopt;
    316 
    317     if (!m_waitingForMDNSResolution && m_finishedReceivingCandidates)
    318         endOfIceCandidates(WTFMove(*m_endOfIceCandidatePromise));
    319315}
    320316
     
    331327    m_addIceCandidatePromise->reject(WTFMove(exception));
    332328    m_addIceCandidatePromise = WTF::nullopt;
    333 
    334     if (!m_waitingForMDNSResolution && m_finishedReceivingCandidates)
    335         endOfIceCandidates(WTFMove(*m_endOfIceCandidatePromise));
    336329}
    337330
  • trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h

    r239427 r244724  
    211211    Optional<DOMPromiseDeferred<void>> m_setDescriptionPromise;
    212212    Optional<DOMPromiseDeferred<void>> m_addIceCandidatePromise;
    213     Optional<DOMPromiseDeferred<void>> m_endOfIceCandidatePromise;
    214213
    215214    bool m_shouldFilterICECandidates { true };
     
    230229    bool m_finishedGatheringCandidates { false };
    231230    uint64_t m_waitingForMDNSRegistration { 0 };
    232 
    233     bool m_finishedReceivingCandidates { false };
    234     uint64_t m_waitingForMDNSResolution { 0 };
    235 
    236     HashMap<String, String> m_mdnsMapping;
    237231};
    238232
Note: See TracChangeset for help on using the changeset viewer.