| Index: Source/modules/mediastream/RTCPeerConnection.cpp
|
| diff --git a/Source/modules/mediastream/RTCPeerConnection.cpp b/Source/modules/mediastream/RTCPeerConnection.cpp
|
| index d1902e29e3876dc11771ec85497c0e15b80531c6..9fe2640f61aa9dbe163ca7cbd14867ddcc26c964 100644
|
| --- a/Source/modules/mediastream/RTCPeerConnection.cpp
|
| +++ b/Source/modules/mediastream/RTCPeerConnection.cpp
|
| @@ -166,7 +166,7 @@ RTCPeerConnection::~RTCPeerConnection()
|
| stop();
|
| }
|
|
|
| -void RTCPeerConnection::createOffer(PassRefPtr<RTCSessionDescriptionCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, const Dictionary& mediaConstraints, ExceptionState& exceptionState)
|
| +void RTCPeerConnection::createOffer(PassOwnPtr<RTCSessionDescriptionCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback, const Dictionary& mediaConstraints, ExceptionState& exceptionState)
|
| {
|
| if (m_signalingState == SignalingStateClosed) {
|
| exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| @@ -186,7 +186,7 @@ void RTCPeerConnection::createOffer(PassRefPtr<RTCSessionDescriptionCallback> su
|
| m_peerHandler->createOffer(request.release(), constraints);
|
| }
|
|
|
| -void RTCPeerConnection::createAnswer(PassRefPtr<RTCSessionDescriptionCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, const Dictionary& mediaConstraints, ExceptionState& exceptionState)
|
| +void RTCPeerConnection::createAnswer(PassOwnPtr<RTCSessionDescriptionCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback, const Dictionary& mediaConstraints, ExceptionState& exceptionState)
|
| {
|
| if (m_signalingState == SignalingStateClosed) {
|
| exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| @@ -206,7 +206,7 @@ void RTCPeerConnection::createAnswer(PassRefPtr<RTCSessionDescriptionCallback> s
|
| m_peerHandler->createAnswer(request.release(), constraints.release());
|
| }
|
|
|
| -void RTCPeerConnection::setLocalDescription(PassRefPtr<RTCSessionDescription> prpSessionDescription, PassRefPtr<VoidCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, ExceptionState& exceptionState)
|
| +void RTCPeerConnection::setLocalDescription(PassRefPtr<RTCSessionDescription> prpSessionDescription, PassRefPtr<VoidCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback, ExceptionState& exceptionState)
|
| {
|
| if (m_signalingState == SignalingStateClosed) {
|
| exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| @@ -233,7 +233,7 @@ PassRefPtr<RTCSessionDescription> RTCPeerConnection::localDescription(ExceptionS
|
| return sessionDescription.release();
|
| }
|
|
|
| -void RTCPeerConnection::setRemoteDescription(PassRefPtr<RTCSessionDescription> prpSessionDescription, PassRefPtr<VoidCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, ExceptionState& exceptionState)
|
| +void RTCPeerConnection::setRemoteDescription(PassRefPtr<RTCSessionDescription> prpSessionDescription, PassRefPtr<VoidCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback, ExceptionState& exceptionState)
|
| {
|
| if (m_signalingState == SignalingStateClosed) {
|
| exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| @@ -297,7 +297,7 @@ void RTCPeerConnection::addIceCandidate(RTCIceCandidate* iceCandidate, Exception
|
| exceptionState.throwUninformativeAndGenericDOMException(SyntaxError);
|
| }
|
|
|
| -void RTCPeerConnection::addIceCandidate(RTCIceCandidate* iceCandidate, PassRefPtr<VoidCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, ExceptionState& exceptionState)
|
| +void RTCPeerConnection::addIceCandidate(RTCIceCandidate* iceCandidate, PassRefPtr<VoidCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback, ExceptionState& exceptionState)
|
| {
|
| if (m_signalingState == SignalingStateClosed) {
|
| exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| @@ -450,7 +450,7 @@ MediaStream* RTCPeerConnection::getStreamById(const String& streamId)
|
| return 0;
|
| }
|
|
|
| -void RTCPeerConnection::getStats(PassRefPtr<RTCStatsCallback> successCallback, PassRefPtr<MediaStreamTrack> selector)
|
| +void RTCPeerConnection::getStats(PassOwnPtr<RTCStatsCallback> successCallback, PassRefPtr<MediaStreamTrack> selector)
|
| {
|
| RefPtr<RTCStatsRequestImpl> statsRequest = RTCStatsRequestImpl::create(executionContext(), successCallback, selector);
|
| // FIXME: Add passing selector as part of the statsRequest.
|
|
|