haikuwebkit/Source/WebCore/platform/mediastream/RTCSignalingState.h

60 lines
1.9 KiB
C
Raw Permalink Normal View History

Clean up RTCSdpType, RTC enums and headers https://bugs.webkit.org/show_bug.cgi?id=169741 Reviewed by Youenn Fablet. Convert to RTCSdpType. * Modules/mediastream/MediaEndpointPeerConnection.cpp: * Modules/mediastream/MediaEndpointPeerConnection.h: * Modules/mediastream/MediaEndpointSessionDescription.cpp: * Modules/mediastream/MediaEndpointSessionDescription.h: * Modules/mediastream/PeerConnectionBackend.cpp: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: Convert SDP argument to lvalue. * Modules/mediastream/RTCSessionDescription.cpp: * Modules/mediastream/RTCSessionDescription.h: * Modules/mediastream/RTCSessionDescription.idl: Keep RTC enum IDLs above platform. Move the C++ enum headers into platform. * Modules/mediastream/RTCEnums.h: Removed. * Modules/mediastream/RTCIceConnectionState.h: Removed. * Modules/mediastream/RTCIceGatheringState.h: Removed. * Modules/mediastream/RTCIceTransportState.h: Removed. * Modules/mediastream/RTCSignalingState.h: Removed. * platform/mediastream/PeerConnectionStates.h: Remove from .xcodeproj. Move enums to separate headers. * platform/mediastream/RTCBundlePolicy.h: * platform/mediastream/RTCIceConnectionState.h: * platform/mediastream/RTCIceGatheringState.h: * platform/mediastream/RTCIceTransportPolicy.h: * platform/mediastream/RTCIceTransportState.h: * platform/mediastream/RTCRtpTransceiverDirection.h: Renamed from Source/WebCore/Modules/mediastream/RTCRtpTransceiverDirection.h. * platform/mediastream/RTCSdpType.h: * platform/mediastream/RTCSignalingState.h: Move RtpTransceiverDirection out to a separate IDL. * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpTransceiver.cpp: * Modules/mediastream/RTCRtpTransceiver.h: * WebCore.xcodeproj/project.pbxproj: Replace RTCEnums include with specific headers per enum. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCConfiguration.h: * Modules/mediastream/RTCIceTransport.h: * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::completeAddTransceiver): Remove unneeded static_cast. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/RTCRtpTransceiver.h: * platform/mediastream/MediaEndpoint.h: * platform/mediastream/MediaEndpointConfiguration.h: * platform/mock/MockMediaEndpoint.h: Clean up license. * Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h: Modernize header to use #pragma once. * platform/mediastream/RTCDTMFSenderHandler.h: * platform/mediastream/RTCDTMFSenderHandlerClient.h: * platform/mediastream/RTCIceCandidateDescriptor.h: * platform/mediastream/RTCPeerConnectionHandlerClient.h: * platform/mediastream/RTCSessionDescriptionDescriptor.h: * platform/mediastream/RTCSessionDescriptionRequest.h: * platform/mediastream/RTCVoidRequest.h: * platform/mock/RTCNotifiersMock.h: Canonical link: https://commits.webkit.org/186844@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-21 07:50:04 +00:00
/*
* Copyright (C) 2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#if ENABLE(WEB_RTC)
namespace WebCore {
enum class RTCSignalingState {
Stable,
HaveLocalOffer,
HaveRemoteOffer,
HaveLocalPranswer,
HaveRemotePranswer,
Closed,
Clean up RTCSdpType, RTC enums and headers https://bugs.webkit.org/show_bug.cgi?id=169741 Reviewed by Youenn Fablet. Convert to RTCSdpType. * Modules/mediastream/MediaEndpointPeerConnection.cpp: * Modules/mediastream/MediaEndpointPeerConnection.h: * Modules/mediastream/MediaEndpointSessionDescription.cpp: * Modules/mediastream/MediaEndpointSessionDescription.h: * Modules/mediastream/PeerConnectionBackend.cpp: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: Convert SDP argument to lvalue. * Modules/mediastream/RTCSessionDescription.cpp: * Modules/mediastream/RTCSessionDescription.h: * Modules/mediastream/RTCSessionDescription.idl: Keep RTC enum IDLs above platform. Move the C++ enum headers into platform. * Modules/mediastream/RTCEnums.h: Removed. * Modules/mediastream/RTCIceConnectionState.h: Removed. * Modules/mediastream/RTCIceGatheringState.h: Removed. * Modules/mediastream/RTCIceTransportState.h: Removed. * Modules/mediastream/RTCSignalingState.h: Removed. * platform/mediastream/PeerConnectionStates.h: Remove from .xcodeproj. Move enums to separate headers. * platform/mediastream/RTCBundlePolicy.h: * platform/mediastream/RTCIceConnectionState.h: * platform/mediastream/RTCIceGatheringState.h: * platform/mediastream/RTCIceTransportPolicy.h: * platform/mediastream/RTCIceTransportState.h: * platform/mediastream/RTCRtpTransceiverDirection.h: Renamed from Source/WebCore/Modules/mediastream/RTCRtpTransceiverDirection.h. * platform/mediastream/RTCSdpType.h: * platform/mediastream/RTCSignalingState.h: Move RtpTransceiverDirection out to a separate IDL. * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpTransceiver.cpp: * Modules/mediastream/RTCRtpTransceiver.h: * WebCore.xcodeproj/project.pbxproj: Replace RTCEnums include with specific headers per enum. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCConfiguration.h: * Modules/mediastream/RTCIceTransport.h: * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::completeAddTransceiver): Remove unneeded static_cast. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/RTCRtpTransceiver.h: * platform/mediastream/MediaEndpoint.h: * platform/mediastream/MediaEndpointConfiguration.h: * platform/mock/MockMediaEndpoint.h: Clean up license. * Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h: Modernize header to use #pragma once. * platform/mediastream/RTCDTMFSenderHandler.h: * platform/mediastream/RTCDTMFSenderHandlerClient.h: * platform/mediastream/RTCIceCandidateDescriptor.h: * platform/mediastream/RTCPeerConnectionHandlerClient.h: * platform/mediastream/RTCSessionDescriptionDescriptor.h: * platform/mediastream/RTCSessionDescriptionRequest.h: * platform/mediastream/RTCVoidRequest.h: * platform/mock/RTCNotifiersMock.h: Canonical link: https://commits.webkit.org/186844@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-21 07:50:04 +00:00
};
Switch PeerConnection to release logging https://bugs.webkit.org/show_bug.cgi?id=177193 <rdar://problem/34529014> Reviewed by Youenn Fablet. * Modules/mediastream/PeerConnectionBackend.cpp: (WebCore::PeerConnectionBackend::PeerConnectionBackend): (WebCore::PeerConnectionBackend::createOfferSucceeded): (WebCore::PeerConnectionBackend::createOfferFailed): (WebCore::PeerConnectionBackend::createAnswerSucceeded): (WebCore::PeerConnectionBackend::createAnswerFailed): (WebCore::PeerConnectionBackend::setLocalDescriptionSucceeded): (WebCore::PeerConnectionBackend::setLocalDescriptionFailed): (WebCore::PeerConnectionBackend::setRemoteDescriptionSucceeded): (WebCore::PeerConnectionBackend::setRemoteDescriptionFailed): (WebCore::PeerConnectionBackend::addIceCandidateSucceeded): (WebCore::PeerConnectionBackend::addIceCandidateFailed): (WebCore::PeerConnectionBackend::newICECandidate): (WebCore::PeerConnectionBackend::doneGatheringCandidates): (WebCore::PeerConnectionBackend::logChannel const): * Modules/mediastream/PeerConnectionBackend.h: (WebCore::PeerConnectionBackend::PeerConnectionBackend): Deleted. * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::RTCPeerConnection): (WebCore::RTCPeerConnection::~RTCPeerConnection): (WebCore::RTCPeerConnection::addTrack): (WebCore::RTCPeerConnection::removeTrack): (WebCore::RTCPeerConnection::addTransceiver): (WebCore::RTCPeerConnection::queuedCreateOffer): (WebCore::RTCPeerConnection::queuedCreateAnswer): (WebCore::RTCPeerConnection::queuedSetLocalDescription): (WebCore::RTCPeerConnection::queuedSetRemoteDescription): (WebCore::RTCPeerConnection::queuedAddIceCandidate): (WebCore::RTCPeerConnection::initializeConfiguration): (WebCore::RTCPeerConnection::setConfiguration): (WebCore::RTCPeerConnection::createDataChannel): (WebCore::RTCPeerConnection::setSignalingState): (WebCore::RTCPeerConnection::updateIceGatheringState): (WebCore::RTCPeerConnection::updateIceConnectionState): (WebCore::RTCPeerConnection::updateConnectionState): (WebCore::RTCPeerConnection::replaceTrack): (WebCore::RTCPeerConnection::dispatchEvent): (WebCore::RTCPeerConnection::logChannel const): (WebCore::rtcIceGatheringStateToString): Deleted. (WebCore::rtcIceConnectionStateToString): Deleted. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: (WebCore::LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint): (WebCore::LibWebRTCMediaEndpoint::OnStatsDelivered): (WebCore::LibWebRTCMediaEndpoint::startLoggingStats): (WebCore::LibWebRTCMediaEndpoint::logChannel const): (WebCore::LibWebRTCMediaEndpoint::statsLogInterval const): * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: (PAL::LogArgument<webrtc::RTCStats>::toString): * platform/mediastream/RTCIceConnectionState.h: (PAL::LogArgument<WebCore::RTCIceConnectionState>::toString): * platform/mediastream/RTCIceGatheringState.h: (PAL::LogArgument<WebCore::RTCIceGatheringState>::toString): * platform/mediastream/RTCPeerConnectionState.h: (PAL::LogArgument<WebCore::RTCPeerConnectionState>::toString): * platform/mediastream/RTCSignalingState.h: (PAL::LogArgument<WebCore::RTCSignalingState>::toString): Canonical link: https://commits.webkit.org/193586@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-09-20 17:55:27 +00:00
String convertEnumerationToString(RTCSignalingState); // in JSCRTCSignalingState.cpp
Clean up RTCSdpType, RTC enums and headers https://bugs.webkit.org/show_bug.cgi?id=169741 Reviewed by Youenn Fablet. Convert to RTCSdpType. * Modules/mediastream/MediaEndpointPeerConnection.cpp: * Modules/mediastream/MediaEndpointPeerConnection.h: * Modules/mediastream/MediaEndpointSessionDescription.cpp: * Modules/mediastream/MediaEndpointSessionDescription.h: * Modules/mediastream/PeerConnectionBackend.cpp: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: Convert SDP argument to lvalue. * Modules/mediastream/RTCSessionDescription.cpp: * Modules/mediastream/RTCSessionDescription.h: * Modules/mediastream/RTCSessionDescription.idl: Keep RTC enum IDLs above platform. Move the C++ enum headers into platform. * Modules/mediastream/RTCEnums.h: Removed. * Modules/mediastream/RTCIceConnectionState.h: Removed. * Modules/mediastream/RTCIceGatheringState.h: Removed. * Modules/mediastream/RTCIceTransportState.h: Removed. * Modules/mediastream/RTCSignalingState.h: Removed. * platform/mediastream/PeerConnectionStates.h: Remove from .xcodeproj. Move enums to separate headers. * platform/mediastream/RTCBundlePolicy.h: * platform/mediastream/RTCIceConnectionState.h: * platform/mediastream/RTCIceGatheringState.h: * platform/mediastream/RTCIceTransportPolicy.h: * platform/mediastream/RTCIceTransportState.h: * platform/mediastream/RTCRtpTransceiverDirection.h: Renamed from Source/WebCore/Modules/mediastream/RTCRtpTransceiverDirection.h. * platform/mediastream/RTCSdpType.h: * platform/mediastream/RTCSignalingState.h: Move RtpTransceiverDirection out to a separate IDL. * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpTransceiver.cpp: * Modules/mediastream/RTCRtpTransceiver.h: * WebCore.xcodeproj/project.pbxproj: Replace RTCEnums include with specific headers per enum. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCConfiguration.h: * Modules/mediastream/RTCIceTransport.h: * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::completeAddTransceiver): Remove unneeded static_cast. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/RTCRtpTransceiver.h: * platform/mediastream/MediaEndpoint.h: * platform/mediastream/MediaEndpointConfiguration.h: * platform/mock/MockMediaEndpoint.h: Clean up license. * Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h: Modernize header to use #pragma once. * platform/mediastream/RTCDTMFSenderHandler.h: * platform/mediastream/RTCDTMFSenderHandlerClient.h: * platform/mediastream/RTCIceCandidateDescriptor.h: * platform/mediastream/RTCPeerConnectionHandlerClient.h: * platform/mediastream/RTCSessionDescriptionDescriptor.h: * platform/mediastream/RTCSessionDescriptionRequest.h: * platform/mediastream/RTCVoidRequest.h: * platform/mock/RTCNotifiersMock.h: Canonical link: https://commits.webkit.org/186844@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-21 07:50:04 +00:00
}; // namespace WebCore
Move Logger from PAL to WTF so it can be used outside of WebCore https://bugs.webkit.org/show_bug.cgi?id=180561 Reviewed by Alex Christensen. Source/WebCore: No new tests, existing API test updated. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: (PAL::LogArgument<webrtc::RTCStats>::toString): Deleted. * dom/Document.cpp: * dom/Document.h: * html/HTMLMediaElement.cpp: (PAL::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLMediaElement.h: * html/HTMLMediaElementEnums.h: (PAL::LogArgument<WebCore::HTMLMediaElementEnums::ReadyState>::toString): Deleted. (PAL::LogArgument<WebCore::HTMLMediaElementEnums::NetworkState>::toString): Deleted. * html/MediaElementSession.cpp: (WebCore::MediaElementSession::logger const): * html/MediaElementSession.h: * html/track/DataCue.h: (PAL::LogArgument<WebCore::DataCue>::toString): Deleted. * html/track/TextTrackCue.h: (PAL::LogArgument<WebCore::TextTrackCue>::toString): Deleted. * html/track/TextTrackCueGeneric.h: (PAL::LogArgument<WebCore::TextTrackCueGeneric>::toString): Deleted. * html/track/TrackBase.cpp: (WebCore::nullLogger): (WebCore::TrackBase::TrackBase): * html/track/TrackBase.h: * html/track/VTTCue.h: (PAL::LogArgument<WebCore::VTTCue>::toString): Deleted. * platform/graphics/InbandTextTrackPrivate.h: * platform/graphics/InbandTextTrackPrivateClient.h: (PAL::LogArgument<WebCore::GenericCueData>::toString): Deleted. * platform/graphics/MediaPlayer.cpp: (WebCore::nullLogger): (WebCore::MediaPlayer::mediaPlayerLogger): * platform/graphics/MediaPlayer.h: (WTF::LogArgument<MediaTime>::toString): (PAL::LogArgument<WTF::MediaTime>::toString): Deleted. * platform/graphics/MediaPlayerEnums.h: (PAL::LogArgument<WebCore::MediaPlayerEnums::ReadyState>::toString): Deleted. (PAL::LogArgument<WebCore::MediaPlayerEnums::NetworkState>::toString): Deleted. * platform/graphics/TrackPrivateBase.cpp: (WebCore::TrackPrivateBase::setLogger): * platform/graphics/TrackPrivateBase.h: * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]): * platform/mediastream/RTCIceConnectionState.h: (PAL::LogArgument<WebCore::RTCIceConnectionState>::toString): Deleted. * platform/mediastream/RTCIceGatheringState.h: (PAL::LogArgument<WebCore::RTCIceGatheringState>::toString): Deleted. * platform/mediastream/RTCPeerConnectionState.h: (PAL::LogArgument<WebCore::RTCPeerConnectionState>::toString): Deleted. * platform/mediastream/RTCSignalingState.h: (PAL::LogArgument<WebCore::RTCSignalingState>::toString): Deleted. * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/Logger.h: Removed. * pal/LoggerHelper.h: Removed. Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/Logger.h: Copied from Source/WebCore/PAL/pal/Logger.h. (PAL::LogArgument::toString): Deleted. (PAL::Logger::create): Deleted. (PAL::Logger::logAlways const): Deleted. (PAL::Logger::error const): Deleted. (PAL::Logger::warning const): Deleted. (PAL::Logger::info const): Deleted. (PAL::Logger::debug const): Deleted. (PAL::Logger::willLog const): Deleted. (PAL::Logger::enabled const): Deleted. (PAL::Logger::setEnabled): Deleted. (PAL::Logger::LogSiteIdentifier::LogSiteIdentifier): Deleted. (PAL::Logger::addObserver): Deleted. (PAL::Logger::removeObserver): Deleted. (PAL::Logger::Logger): Deleted. (PAL::Logger::log): Deleted. (PAL::Logger::observers): Deleted. (PAL::LogArgument<Logger::LogSiteIdentifier>::toString): Deleted. * wtf/LoggerHelper.h: Copied from Source/WebCore/PAL/pal/LoggerHelper.h. Tools: * TestWebKitAPI/Tests/WebCore/Logging.cpp: (TestWebKitAPI::TEST_F): Canonical link: https://commits.webkit.org/196512@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-12-08 20:33:53 +00:00
namespace WTF {
Switch PeerConnection to release logging https://bugs.webkit.org/show_bug.cgi?id=177193 <rdar://problem/34529014> Reviewed by Youenn Fablet. * Modules/mediastream/PeerConnectionBackend.cpp: (WebCore::PeerConnectionBackend::PeerConnectionBackend): (WebCore::PeerConnectionBackend::createOfferSucceeded): (WebCore::PeerConnectionBackend::createOfferFailed): (WebCore::PeerConnectionBackend::createAnswerSucceeded): (WebCore::PeerConnectionBackend::createAnswerFailed): (WebCore::PeerConnectionBackend::setLocalDescriptionSucceeded): (WebCore::PeerConnectionBackend::setLocalDescriptionFailed): (WebCore::PeerConnectionBackend::setRemoteDescriptionSucceeded): (WebCore::PeerConnectionBackend::setRemoteDescriptionFailed): (WebCore::PeerConnectionBackend::addIceCandidateSucceeded): (WebCore::PeerConnectionBackend::addIceCandidateFailed): (WebCore::PeerConnectionBackend::newICECandidate): (WebCore::PeerConnectionBackend::doneGatheringCandidates): (WebCore::PeerConnectionBackend::logChannel const): * Modules/mediastream/PeerConnectionBackend.h: (WebCore::PeerConnectionBackend::PeerConnectionBackend): Deleted. * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::RTCPeerConnection): (WebCore::RTCPeerConnection::~RTCPeerConnection): (WebCore::RTCPeerConnection::addTrack): (WebCore::RTCPeerConnection::removeTrack): (WebCore::RTCPeerConnection::addTransceiver): (WebCore::RTCPeerConnection::queuedCreateOffer): (WebCore::RTCPeerConnection::queuedCreateAnswer): (WebCore::RTCPeerConnection::queuedSetLocalDescription): (WebCore::RTCPeerConnection::queuedSetRemoteDescription): (WebCore::RTCPeerConnection::queuedAddIceCandidate): (WebCore::RTCPeerConnection::initializeConfiguration): (WebCore::RTCPeerConnection::setConfiguration): (WebCore::RTCPeerConnection::createDataChannel): (WebCore::RTCPeerConnection::setSignalingState): (WebCore::RTCPeerConnection::updateIceGatheringState): (WebCore::RTCPeerConnection::updateIceConnectionState): (WebCore::RTCPeerConnection::updateConnectionState): (WebCore::RTCPeerConnection::replaceTrack): (WebCore::RTCPeerConnection::dispatchEvent): (WebCore::RTCPeerConnection::logChannel const): (WebCore::rtcIceGatheringStateToString): Deleted. (WebCore::rtcIceConnectionStateToString): Deleted. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: (WebCore::LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint): (WebCore::LibWebRTCMediaEndpoint::OnStatsDelivered): (WebCore::LibWebRTCMediaEndpoint::startLoggingStats): (WebCore::LibWebRTCMediaEndpoint::logChannel const): (WebCore::LibWebRTCMediaEndpoint::statsLogInterval const): * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: (PAL::LogArgument<webrtc::RTCStats>::toString): * platform/mediastream/RTCIceConnectionState.h: (PAL::LogArgument<WebCore::RTCIceConnectionState>::toString): * platform/mediastream/RTCIceGatheringState.h: (PAL::LogArgument<WebCore::RTCIceGatheringState>::toString): * platform/mediastream/RTCPeerConnectionState.h: (PAL::LogArgument<WebCore::RTCPeerConnectionState>::toString): * platform/mediastream/RTCSignalingState.h: (PAL::LogArgument<WebCore::RTCSignalingState>::toString): Canonical link: https://commits.webkit.org/193586@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-09-20 17:55:27 +00:00
template<typename Type>
struct LogArgument;
template <>
struct LogArgument<WebCore::RTCSignalingState> {
static String toString(const WebCore::RTCSignalingState state)
{
return convertEnumerationToString(state);
}
};
Move Logger from PAL to WTF so it can be used outside of WebCore https://bugs.webkit.org/show_bug.cgi?id=180561 Reviewed by Alex Christensen. Source/WebCore: No new tests, existing API test updated. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: (PAL::LogArgument<webrtc::RTCStats>::toString): Deleted. * dom/Document.cpp: * dom/Document.h: * html/HTMLMediaElement.cpp: (PAL::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLMediaElement.h: * html/HTMLMediaElementEnums.h: (PAL::LogArgument<WebCore::HTMLMediaElementEnums::ReadyState>::toString): Deleted. (PAL::LogArgument<WebCore::HTMLMediaElementEnums::NetworkState>::toString): Deleted. * html/MediaElementSession.cpp: (WebCore::MediaElementSession::logger const): * html/MediaElementSession.h: * html/track/DataCue.h: (PAL::LogArgument<WebCore::DataCue>::toString): Deleted. * html/track/TextTrackCue.h: (PAL::LogArgument<WebCore::TextTrackCue>::toString): Deleted. * html/track/TextTrackCueGeneric.h: (PAL::LogArgument<WebCore::TextTrackCueGeneric>::toString): Deleted. * html/track/TrackBase.cpp: (WebCore::nullLogger): (WebCore::TrackBase::TrackBase): * html/track/TrackBase.h: * html/track/VTTCue.h: (PAL::LogArgument<WebCore::VTTCue>::toString): Deleted. * platform/graphics/InbandTextTrackPrivate.h: * platform/graphics/InbandTextTrackPrivateClient.h: (PAL::LogArgument<WebCore::GenericCueData>::toString): Deleted. * platform/graphics/MediaPlayer.cpp: (WebCore::nullLogger): (WebCore::MediaPlayer::mediaPlayerLogger): * platform/graphics/MediaPlayer.h: (WTF::LogArgument<MediaTime>::toString): (PAL::LogArgument<WTF::MediaTime>::toString): Deleted. * platform/graphics/MediaPlayerEnums.h: (PAL::LogArgument<WebCore::MediaPlayerEnums::ReadyState>::toString): Deleted. (PAL::LogArgument<WebCore::MediaPlayerEnums::NetworkState>::toString): Deleted. * platform/graphics/TrackPrivateBase.cpp: (WebCore::TrackPrivateBase::setLogger): * platform/graphics/TrackPrivateBase.h: * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]): * platform/mediastream/RTCIceConnectionState.h: (PAL::LogArgument<WebCore::RTCIceConnectionState>::toString): Deleted. * platform/mediastream/RTCIceGatheringState.h: (PAL::LogArgument<WebCore::RTCIceGatheringState>::toString): Deleted. * platform/mediastream/RTCPeerConnectionState.h: (PAL::LogArgument<WebCore::RTCPeerConnectionState>::toString): Deleted. * platform/mediastream/RTCSignalingState.h: (PAL::LogArgument<WebCore::RTCSignalingState>::toString): Deleted. * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/Logger.h: Removed. * pal/LoggerHelper.h: Removed. Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/Logger.h: Copied from Source/WebCore/PAL/pal/Logger.h. (PAL::LogArgument::toString): Deleted. (PAL::Logger::create): Deleted. (PAL::Logger::logAlways const): Deleted. (PAL::Logger::error const): Deleted. (PAL::Logger::warning const): Deleted. (PAL::Logger::info const): Deleted. (PAL::Logger::debug const): Deleted. (PAL::Logger::willLog const): Deleted. (PAL::Logger::enabled const): Deleted. (PAL::Logger::setEnabled): Deleted. (PAL::Logger::LogSiteIdentifier::LogSiteIdentifier): Deleted. (PAL::Logger::addObserver): Deleted. (PAL::Logger::removeObserver): Deleted. (PAL::Logger::Logger): Deleted. (PAL::Logger::log): Deleted. (PAL::Logger::observers): Deleted. (PAL::LogArgument<Logger::LogSiteIdentifier>::toString): Deleted. * wtf/LoggerHelper.h: Copied from Source/WebCore/PAL/pal/LoggerHelper.h. Tools: * TestWebKitAPI/Tests/WebCore/Logging.cpp: (TestWebKitAPI::TEST_F): Canonical link: https://commits.webkit.org/196512@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-12-08 20:33:53 +00:00
}; // namespace WTF
Switch PeerConnection to release logging https://bugs.webkit.org/show_bug.cgi?id=177193 <rdar://problem/34529014> Reviewed by Youenn Fablet. * Modules/mediastream/PeerConnectionBackend.cpp: (WebCore::PeerConnectionBackend::PeerConnectionBackend): (WebCore::PeerConnectionBackend::createOfferSucceeded): (WebCore::PeerConnectionBackend::createOfferFailed): (WebCore::PeerConnectionBackend::createAnswerSucceeded): (WebCore::PeerConnectionBackend::createAnswerFailed): (WebCore::PeerConnectionBackend::setLocalDescriptionSucceeded): (WebCore::PeerConnectionBackend::setLocalDescriptionFailed): (WebCore::PeerConnectionBackend::setRemoteDescriptionSucceeded): (WebCore::PeerConnectionBackend::setRemoteDescriptionFailed): (WebCore::PeerConnectionBackend::addIceCandidateSucceeded): (WebCore::PeerConnectionBackend::addIceCandidateFailed): (WebCore::PeerConnectionBackend::newICECandidate): (WebCore::PeerConnectionBackend::doneGatheringCandidates): (WebCore::PeerConnectionBackend::logChannel const): * Modules/mediastream/PeerConnectionBackend.h: (WebCore::PeerConnectionBackend::PeerConnectionBackend): Deleted. * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::RTCPeerConnection): (WebCore::RTCPeerConnection::~RTCPeerConnection): (WebCore::RTCPeerConnection::addTrack): (WebCore::RTCPeerConnection::removeTrack): (WebCore::RTCPeerConnection::addTransceiver): (WebCore::RTCPeerConnection::queuedCreateOffer): (WebCore::RTCPeerConnection::queuedCreateAnswer): (WebCore::RTCPeerConnection::queuedSetLocalDescription): (WebCore::RTCPeerConnection::queuedSetRemoteDescription): (WebCore::RTCPeerConnection::queuedAddIceCandidate): (WebCore::RTCPeerConnection::initializeConfiguration): (WebCore::RTCPeerConnection::setConfiguration): (WebCore::RTCPeerConnection::createDataChannel): (WebCore::RTCPeerConnection::setSignalingState): (WebCore::RTCPeerConnection::updateIceGatheringState): (WebCore::RTCPeerConnection::updateIceConnectionState): (WebCore::RTCPeerConnection::updateConnectionState): (WebCore::RTCPeerConnection::replaceTrack): (WebCore::RTCPeerConnection::dispatchEvent): (WebCore::RTCPeerConnection::logChannel const): (WebCore::rtcIceGatheringStateToString): Deleted. (WebCore::rtcIceConnectionStateToString): Deleted. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: (WebCore::LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint): (WebCore::LibWebRTCMediaEndpoint::OnStatsDelivered): (WebCore::LibWebRTCMediaEndpoint::startLoggingStats): (WebCore::LibWebRTCMediaEndpoint::logChannel const): (WebCore::LibWebRTCMediaEndpoint::statsLogInterval const): * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: (PAL::LogArgument<webrtc::RTCStats>::toString): * platform/mediastream/RTCIceConnectionState.h: (PAL::LogArgument<WebCore::RTCIceConnectionState>::toString): * platform/mediastream/RTCIceGatheringState.h: (PAL::LogArgument<WebCore::RTCIceGatheringState>::toString): * platform/mediastream/RTCPeerConnectionState.h: (PAL::LogArgument<WebCore::RTCPeerConnectionState>::toString): * platform/mediastream/RTCSignalingState.h: (PAL::LogArgument<WebCore::RTCSignalingState>::toString): Canonical link: https://commits.webkit.org/193586@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-09-20 17:55:27 +00:00
Clean up RTCSdpType, RTC enums and headers https://bugs.webkit.org/show_bug.cgi?id=169741 Reviewed by Youenn Fablet. Convert to RTCSdpType. * Modules/mediastream/MediaEndpointPeerConnection.cpp: * Modules/mediastream/MediaEndpointPeerConnection.h: * Modules/mediastream/MediaEndpointSessionDescription.cpp: * Modules/mediastream/MediaEndpointSessionDescription.h: * Modules/mediastream/PeerConnectionBackend.cpp: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: Convert SDP argument to lvalue. * Modules/mediastream/RTCSessionDescription.cpp: * Modules/mediastream/RTCSessionDescription.h: * Modules/mediastream/RTCSessionDescription.idl: Keep RTC enum IDLs above platform. Move the C++ enum headers into platform. * Modules/mediastream/RTCEnums.h: Removed. * Modules/mediastream/RTCIceConnectionState.h: Removed. * Modules/mediastream/RTCIceGatheringState.h: Removed. * Modules/mediastream/RTCIceTransportState.h: Removed. * Modules/mediastream/RTCSignalingState.h: Removed. * platform/mediastream/PeerConnectionStates.h: Remove from .xcodeproj. Move enums to separate headers. * platform/mediastream/RTCBundlePolicy.h: * platform/mediastream/RTCIceConnectionState.h: * platform/mediastream/RTCIceGatheringState.h: * platform/mediastream/RTCIceTransportPolicy.h: * platform/mediastream/RTCIceTransportState.h: * platform/mediastream/RTCRtpTransceiverDirection.h: Renamed from Source/WebCore/Modules/mediastream/RTCRtpTransceiverDirection.h. * platform/mediastream/RTCSdpType.h: * platform/mediastream/RTCSignalingState.h: Move RtpTransceiverDirection out to a separate IDL. * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpTransceiver.cpp: * Modules/mediastream/RTCRtpTransceiver.h: * WebCore.xcodeproj/project.pbxproj: Replace RTCEnums include with specific headers per enum. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCConfiguration.h: * Modules/mediastream/RTCIceTransport.h: * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::completeAddTransceiver): Remove unneeded static_cast. * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/RTCRtpTransceiver.h: * platform/mediastream/MediaEndpoint.h: * platform/mediastream/MediaEndpointConfiguration.h: * platform/mock/MockMediaEndpoint.h: Clean up license. * Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h: Modernize header to use #pragma once. * platform/mediastream/RTCDTMFSenderHandler.h: * platform/mediastream/RTCDTMFSenderHandlerClient.h: * platform/mediastream/RTCIceCandidateDescriptor.h: * platform/mediastream/RTCPeerConnectionHandlerClient.h: * platform/mediastream/RTCSessionDescriptionDescriptor.h: * platform/mediastream/RTCSessionDescriptionRequest.h: * platform/mediastream/RTCVoidRequest.h: * platform/mock/RTCNotifiersMock.h: Canonical link: https://commits.webkit.org/186844@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-21 07:50:04 +00:00
#endif