Changeset 155346 in webkit
- Timestamp:
- Sep 9, 2013, 6:47:24 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Modules/mediastream/RTCPeerConnection.cpp (modified) (2 diffs)
-
platform/mediastream/RTCConfiguration.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r155344 r155346 1 2013-09-09 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> 2 3 Adding username to RTCIceServer 4 https://bugs.webkit.org/show_bug.cgi?id=120861 5 6 Reviewed by Eric Carlson. 7 8 No new tests needed. Existing media stream tests already cover it 9 10 * Modules/mediastream/RTCPeerConnection.cpp: 11 (WebCore::RTCPeerConnection::parseConfiguration): 12 * platform/mediastream/RTCConfiguration.h: 13 (WebCore::RTCIceServer::create): 14 (WebCore::RTCIceServer::username): 15 (WebCore::RTCIceServer::RTCIceServer): 16 1 17 2013-09-09 Antti Koivisto <antti@apple.com> 2 18 -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
r155057 r155346 94 94 } 95 95 96 String urlString, credential ;96 String urlString, credential, username; 97 97 ok = iceServer.get("url", urlString); 98 98 if (!ok) { … … 107 107 108 108 iceServer.get("credential", credential); 109 110 rtcConfiguration->appendServer(RTCIceServer::create(url, credential)); 109 iceServer.get("username", username); 110 111 rtcConfiguration->appendServer(RTCIceServer::create(url, credential, username)); 111 112 } 112 113 -
trunk/Source/WebCore/platform/mediastream/RTCConfiguration.h
r124421 r155346 44 44 class RTCIceServer : public RefCounted<RTCIceServer> { 45 45 public: 46 static PassRefPtr<RTCIceServer> create(const KURL& uri, const String& credential )46 static PassRefPtr<RTCIceServer> create(const KURL& uri, const String& credential, const String& username) 47 47 { 48 return adoptRef(new RTCIceServer(uri, credential ));48 return adoptRef(new RTCIceServer(uri, credential, username)); 49 49 } 50 50 virtual ~RTCIceServer() { } … … 52 52 const KURL& uri() { return m_uri; } 53 53 const String& credential() { return m_credential; } 54 const String& username() { return m_username; } 54 55 55 56 private: 56 RTCIceServer(const KURL& uri, const String& credential )57 RTCIceServer(const KURL& uri, const String& credential, const String& username) 57 58 : m_uri(uri) 58 59 , m_credential(credential) 60 , m_username(username) 59 61 { 60 62 } … … 62 64 KURL m_uri; 63 65 String m_credential; 66 String m_username; 64 67 }; 65 68
Note:
See TracChangeset
for help on using the changeset viewer.