MediaStream API: Rename PeerConnection to DeprecatedPeerConnection
authortommyw@google.com <tommyw@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2012 18:51:58 +0000 (18:51 +0000)
committertommyw@google.com <tommyw@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2012 18:51:58 +0000 (18:51 +0000)
commit909888a6003e7ff9d1a0dd9f7907ac9a26c5f858
treeabb07b8461bceffeacced3e1476ef187a82c3fde
parent502acbf61186dff3da6567443080ec00120c414d
MediaStream API: Rename PeerConnection to DeprecatedPeerConnection
https://bugs.webkit.org/show_bug.cgi?id=80692

Reviewed by Adam Barth.

First patch in a series of patches to change the PeerConnection from ROAP to JSEP,
see bug 80589 for more information.

Source/WebCore:

Patch covered by modified existing tests.

* GNUmakefile.list.am:
* Modules/mediastream/DOMWindowMediaStream.idl:
* Modules/mediastream/DeprecatedPeerConnection.cpp: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.cpp.
(WebCore):
(WebCore::DeprecatedPeerConnection::create):
(WebCore::DeprecatedPeerConnection::DeprecatedPeerConnection):
(WebCore::DeprecatedPeerConnection::~DeprecatedPeerConnection):
(WebCore::DeprecatedPeerConnection::processSignalingMessage):
(WebCore::DeprecatedPeerConnection::readyState):
(WebCore::DeprecatedPeerConnection::send):
(WebCore::DeprecatedPeerConnection::addStream):
(WebCore::DeprecatedPeerConnection::removeStream):
(WebCore::DeprecatedPeerConnection::localStreams):
(WebCore::DeprecatedPeerConnection::remoteStreams):
(WebCore::DeprecatedPeerConnection::close):
(WebCore::DeprecatedPeerConnection::didCompleteICEProcessing):
(WebCore::DeprecatedPeerConnection::didGenerateSDP):
(WebCore::DeprecatedPeerConnection::didReceiveDataStreamMessage):
(WebCore::DeprecatedPeerConnection::didAddRemoteStream):
(WebCore::DeprecatedPeerConnection::didRemoveRemoteStream):
(WebCore::DeprecatedPeerConnection::interfaceName):
(WebCore::DeprecatedPeerConnection::scriptExecutionContext):
(WebCore::DeprecatedPeerConnection::stop):
(WebCore::DeprecatedPeerConnection::eventTargetData):
(WebCore::DeprecatedPeerConnection::ensureEventTargetData):
(WebCore::DeprecatedPeerConnection::scheduleInitialNegotiation):
(WebCore::DeprecatedPeerConnection::initialNegotiationTimerFired):
(WebCore::DeprecatedPeerConnection::ensureStreamChangeScheduled):
(WebCore::DeprecatedPeerConnection::streamChangeTimerFired):
(WebCore::DeprecatedPeerConnection::scheduleReadyStateChange):
(WebCore::DeprecatedPeerConnection::readyStateChangeTimerFired):
(WebCore::DeprecatedPeerConnection::changeReadyState):
* Modules/mediastream/DeprecatedPeerConnection.h: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.h.
(WebCore):
(DeprecatedPeerConnection):
(WebCore::DeprecatedPeerConnection::didChangeState):
(WebCore::DeprecatedPeerConnection::refEventTarget):
(WebCore::DeprecatedPeerConnection::derefEventTarget):
* Modules/mediastream/DeprecatedPeerConnection.idl: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.idl.
* Modules/mediastream/SignalingCallback.h:
(WebCore):
(SignalingCallback):
* Modules/mediastream/SignalingCallback.idl:
* WebCore.gypi:
* bindings/generic/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::webkitDeprecatedPeerConnectionEnabled):
* bindings/js/JSDeprecatedPeerConnectionCustom.cpp: Renamed from Source/WebCore/bindings/js/JSPeerConnectionCustom.cpp.
(WebCore):
(WebCore::JSDeprecatedPeerConnectionConstructor::constructJSDeprecatedPeerConnection):
* dom/EventTarget.h:
(WebCore):
* dom/EventTargetFactory.in:
* platform/mediastream/DeprecatedPeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/PeerConnectionHandler.h.
(WebCore):
(DeprecatedPeerConnectionHandler):
* platform/mediastream/DeprecatedPeerConnectionHandlerClient.h: Renamed from Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h.
(WebCore):
(DeprecatedPeerConnectionHandlerClient):
(WebCore::DeprecatedPeerConnectionHandlerClient::~DeprecatedPeerConnectionHandlerClient):
* platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebCore/platform/mediastream/gstreamer/PeerConnectionHandler.cpp.
(WebCore):
(WebCore::DeprecatedPeerConnectionHandler::create):
(WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler):
(WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler):
(WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer):
(WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer):
(WebCore::DeprecatedPeerConnectionHandler::processSDP):
(WebCore::DeprecatedPeerConnectionHandler::processPendingStreams):
(WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage):
(WebCore::DeprecatedPeerConnectionHandler::stop):

Source/WebKit/chromium:

* WebKit.gyp:
* bridge/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandler.cpp.
(WebCore):
(WebCore::DeprecatedPeerConnectionHandler::create):
(WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler):
(WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler):
(WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer):
(WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer):
(WebCore::DeprecatedPeerConnectionHandler::processSDP):
(WebCore::DeprecatedPeerConnectionHandler::processPendingStreams):
(WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage):
(WebCore::DeprecatedPeerConnectionHandler::stop):
* bridge/DeprecatedPeerConnectionHandlerInternal.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp.
(WebCore):
(WebCore::DeprecatedPeerConnectionHandlerInternal::DeprecatedPeerConnectionHandlerInternal):
(WebCore::DeprecatedPeerConnectionHandlerInternal::~DeprecatedPeerConnectionHandlerInternal):
(WebCore::DeprecatedPeerConnectionHandlerInternal::produceInitialOffer):
(WebCore::DeprecatedPeerConnectionHandlerInternal::handleInitialOffer):
(WebCore::DeprecatedPeerConnectionHandlerInternal::processSDP):
(WebCore::DeprecatedPeerConnectionHandlerInternal::processPendingStreams):
(WebCore::DeprecatedPeerConnectionHandlerInternal::sendDataStreamMessage):
(WebCore::DeprecatedPeerConnectionHandlerInternal::stop):
(WebCore::DeprecatedPeerConnectionHandlerInternal::didCompleteICEProcessing):
(WebCore::DeprecatedPeerConnectionHandlerInternal::didGenerateSDP):
(WebCore::DeprecatedPeerConnectionHandlerInternal::didReceiveDataStreamMessage):
(WebCore::DeprecatedPeerConnectionHandlerInternal::didAddRemoteStream):
(WebCore::DeprecatedPeerConnectionHandlerInternal::didRemoveRemoteStream):
* bridge/DeprecatedPeerConnectionHandlerInternal.h: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.h.
(WebKit):
(WebCore):
(DeprecatedPeerConnectionHandlerInternal):

LayoutTests:

* fast/dom/call-a-constructor-as-a-function.html:
* fast/mediastream/peerconnection-Attributes-expected.txt:
* fast/mediastream/peerconnection-addstream-expected.txt:
* fast/mediastream/peerconnection-argument-types-expected.txt:
* fast/mediastream/peerconnection-eventlistener-optional-argument.html:
* fast/mediastream/peerconnection-mediastreamlist.html:
* fast/mediastream/peerconnection-removestream-expected.txt:
* fast/mediastream/script-tests/Attributes.js:
* fast/mediastream/script-tests/argument-types.js:
* fast/mediastream/script-tests/peerconnection-addstream.js:
* fast/mediastream/script-tests/peerconnection-removestream.js:
* platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt:
* platform/gtk/fast/dom/call-a-constructor-as-a-function-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
35 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/call-a-constructor-as-a-function.html
LayoutTests/fast/mediastream/peerconnection-Attributes-expected.txt
LayoutTests/fast/mediastream/peerconnection-addstream-expected.txt
LayoutTests/fast/mediastream/peerconnection-argument-types-expected.txt
LayoutTests/fast/mediastream/peerconnection-eventlistener-optional-argument.html
LayoutTests/fast/mediastream/peerconnection-mediastreamlist.html
LayoutTests/fast/mediastream/peerconnection-removestream-expected.txt
LayoutTests/fast/mediastream/script-tests/Attributes.js
LayoutTests/fast/mediastream/script-tests/argument-types.js
LayoutTests/fast/mediastream/script-tests/peerconnection-addstream.js
LayoutTests/fast/mediastream/script-tests/peerconnection-removestream.js
LayoutTests/platform/chromium/fast/dom/call-a-constructor-as-a-function-expected.txt
LayoutTests/platform/gtk/fast/dom/call-a-constructor-as-a-function-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Modules/mediastream/DOMWindowMediaStream.idl
Source/WebCore/Modules/mediastream/DeprecatedPeerConnection.cpp [moved from Source/WebCore/Modules/mediastream/PeerConnection.cpp with 73% similarity]
Source/WebCore/Modules/mediastream/DeprecatedPeerConnection.h [moved from Source/WebCore/Modules/mediastream/PeerConnection.h with 77% similarity]
Source/WebCore/Modules/mediastream/DeprecatedPeerConnection.idl [moved from Source/WebCore/Modules/mediastream/PeerConnection.idl with 97% similarity]
Source/WebCore/Modules/mediastream/SignalingCallback.h
Source/WebCore/Modules/mediastream/SignalingCallback.idl
Source/WebCore/WebCore.gypi
Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
Source/WebCore/bindings/js/JSDeprecatedPeerConnectionCustom.cpp [moved from Source/WebCore/bindings/js/JSPeerConnectionCustom.cpp with 77% similarity]
Source/WebCore/dom/EventTarget.h
Source/WebCore/dom/EventTargetFactory.in
Source/WebCore/platform/mediastream/DeprecatedPeerConnectionHandler.h [moved from Source/WebCore/platform/mediastream/PeerConnectionHandler.h with 75% similarity]
Source/WebCore/platform/mediastream/DeprecatedPeerConnectionHandlerClient.h [moved from Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h with 90% similarity]
Source/WebCore/platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp [moved from Source/WebCore/platform/mediastream/gstreamer/PeerConnectionHandler.cpp with 62% similarity]
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/WebKit.gyp
Source/WebKit/chromium/bridge/DeprecatedPeerConnectionHandler.cpp [moved from Source/WebKit/chromium/bridge/PeerConnectionHandler.cpp with 59% similarity]
Source/WebKit/chromium/bridge/DeprecatedPeerConnectionHandlerInternal.cpp [moved from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp with 69% similarity]
Source/WebKit/chromium/bridge/DeprecatedPeerConnectionHandlerInternal.h [moved from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.h with 84% similarity]