Changeset 165255 in webkit
- Timestamp:
- Mar 7, 2014 3:46:53 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r165248 r165255 1 2014-03-07 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> 2 3 [WebRTC] Adding getConfiguration method to RTCPeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=129845 5 6 Reviewed by Eric Carlson. 7 8 * fast/mediastream/RTCPeerConnection-getConfiguration-expected.txt: Added. 9 * fast/mediastream/RTCPeerConnection-getConfiguration.html: Added. 10 1 11 2014-03-06 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> 2 12 -
trunk/Source/WebCore/CMakeLists.txt
r165226 r165255 218 218 Modules/mediastream/NavigatorUserMediaErrorCallback.idl 219 219 Modules/mediastream/NavigatorUserMediaSuccessCallback.idl 220 Modules/mediastream/RTCConfiguration.idl 220 221 Modules/mediastream/RTCDTMFSender.idl 221 222 Modules/mediastream/RTCDTMFToneChangeEvent.idl … … 225 226 Modules/mediastream/RTCIceCandidate.idl 226 227 Modules/mediastream/RTCIceCandidateEvent.idl 228 Modules/mediastream/RTCIceServer.idl 227 229 Modules/mediastream/RTCPeerConnection.idl 228 230 Modules/mediastream/RTCSessionDescription.idl -
trunk/Source/WebCore/ChangeLog
r165254 r165255 1 2014-03-07 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> 2 3 [WebRTC] Adding getConfiguration method to RTCPeerConnection 4 https://bugs.webkit.org/show_bug.cgi?id=129845 5 6 Reviewed by Eric Carlson. 7 8 Test: fast/mediastream/RTCPeerConnection-getConfiguration.html 9 10 * CMakeLists.txt: 11 * DerivedSources.make: 12 * GNUmakefile.list.am: 13 * Modules/mediastream/RTCConfiguration.idl: Added. 14 * Modules/mediastream/RTCIceServer.idl: Added. 15 * Modules/mediastream/RTCPeerConnection.cpp: 16 (WebCore::RTCPeerConnection::RTCPeerConnection): 17 (WebCore::RTCPeerConnection::updateIce): 18 (WebCore::RTCPeerConnection::getConfiguration): 19 * Modules/mediastream/RTCPeerConnection.h: 20 * Modules/mediastream/RTCPeerConnection.idl: 21 1 22 2014-03-07 Jinwoo Song <jinwoo7.song@samsung.com> 2 23 -
trunk/Source/WebCore/DerivedSources.make
r165199 r165255 126 126 $(WebCore)/Modules/mediastream/NavigatorUserMediaErrorCallback.idl \ 127 127 $(WebCore)/Modules/mediastream/NavigatorUserMediaSuccessCallback.idl \ 128 $(WebCore)/Modules/mediastream/RTCConfiguration.idl \ 128 129 $(WebCore)/Modules/mediastream/RTCDTMFSender.idl \ 129 130 $(WebCore)/Modules/mediastream/RTCDTMFToneChangeEvent.idl \ … … 132 133 $(WebCore)/Modules/mediastream/RTCIceCandidate.idl \ 133 134 $(WebCore)/Modules/mediastream/RTCIceCandidateEvent.idl \ 135 $(WebCore)/Modules/mediastream/RTCIceServer.idl \ 134 136 $(WebCore)/Modules/mediastream/RTCPeerConnection.idl \ 135 137 $(WebCore)/Modules/mediastream/RTCPeerConnectionErrorCallback.idl \ -
trunk/Source/WebCore/GNUmakefile.list.am
r165226 r165255 603 603 DerivedSources/WebCore/JSRGBColor.cpp \ 604 604 DerivedSources/WebCore/JSRGBColor.h \ 605 DerivedSources/WebCore/JSRTCConfiguration.cpp \ 606 DerivedSources/WebCore/JSRTCConfiguration.h \ 605 607 DerivedSources/WebCore/JSRTCDTMFSender.cpp \ 606 608 DerivedSources/WebCore/JSRTCDTMFSender.h \ … … 617 619 DerivedSources/WebCore/JSRTCIceCandidateEvent.cpp \ 618 620 DerivedSources/WebCore/JSRTCIceCandidateEvent.h \ 621 DerivedSources/WebCore/JSRTCIceServer.cpp \ 622 DerivedSources/WebCore/JSRTCIceServer.h \ 619 623 DerivedSources/WebCore/JSRTCPeerConnection.cpp \ 620 624 DerivedSources/WebCore/JSRTCPeerConnection.h \ … … 1224 1228 $(WebCore)/Modules/mediastream/NavigatorUserMediaErrorCallback.idl \ 1225 1229 $(WebCore)/Modules/mediastream/NavigatorUserMediaSuccessCallback.idl \ 1230 $(WebCore)/Modules/mediastream/RTCConfiguration.idl \ 1226 1231 $(WebCore)/Modules/mediastream/RTCDTMFSender.idl \ 1227 1232 $(WebCore)/Modules/mediastream/RTCDTMFToneChangeEvent.idl \ … … 1231 1236 $(WebCore)/Modules/mediastream/RTCIceCandidate.idl \ 1232 1237 $(WebCore)/Modules/mediastream/RTCIceCandidateEvent.idl \ 1238 $(WebCore)/Modules/mediastream/RTCIceServer.idl \ 1233 1239 $(WebCore)/Modules/mediastream/RTCPeerConnection.idl \ 1234 1240 $(WebCore)/Modules/mediastream/RTCSessionDescription.idl \ -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
r165248 r165255 176 176 , m_iceConnectionState(IceConnectionStateNew) 177 177 , m_scheduledEventTimer(this, &RTCPeerConnection::scheduledEventTimerFired) 178 , m_configuration(configuration) 178 179 , m_stopped(false) 179 180 { … … 193 194 document.frame()->loader().client().dispatchWillStartUsingPeerConnectionHandler(m_peerHandler.get()); 194 195 195 if (!m_peerHandler->initialize( configuration)) {196 if (!m_peerHandler->initialize(m_configuration)) { 196 197 ec = NOT_SUPPORTED_ERR; 197 198 return; … … 362 363 } 363 364 364 RefPtr<RTCConfiguration>configuration = parseConfiguration(rtcConfiguration, ec);365 m_configuration = parseConfiguration(rtcConfiguration, ec); 365 366 if (ec) 366 367 return; 367 368 368 bool valid = m_peerHandler->updateIce( configuration);369 bool valid = m_peerHandler->updateIce(m_configuration); 369 370 if (!valid) 370 371 ec = SYNTAX_ERR; … … 497 498 } 498 499 500 RTCConfiguration* RTCPeerConnection::getConfiguration() const 501 { 502 return m_configuration.get(); 503 } 504 499 505 MediaStreamVector RTCPeerConnection::getLocalStreams() const 500 506 { -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.h
r165248 r165255 84 84 String iceConnectionState() const; 85 85 86 RTCConfiguration* getConfiguration() const; 87 86 88 MediaStreamVector getLocalStreams() const; 87 89 … … 166 168 Vector<RefPtr<Event>> m_scheduledEvents; 167 169 170 RefPtr<RTCConfiguration> m_configuration; 171 168 172 bool m_stopped; 169 173 }; -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.idl
r165248 r165255 63 63 MediaStream getStreamById(DOMString streamId); 64 64 65 RTCConfiguration getConfiguration(); 66 65 67 [StrictTypeChecking, RaisesException] void addStream(MediaStream stream); 66 68 [StrictTypeChecking, RaisesException] void removeStream(MediaStream stream);
Note: See TracChangeset
for help on using the changeset viewer.