⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 155346 in webkit


Ignore:
Timestamp:
Sep 9, 2013, 6:47:24 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Adding username to RTCIceServer
https://bugs.webkit.org/show_bug.cgi?id=120861

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-09-09
Reviewed by Eric Carlson.

No new tests needed. Existing media stream tests already cover it

  • Modules/mediastream/RTCPeerConnection.cpp:

(WebCore::RTCPeerConnection::parseConfiguration):

  • platform/mediastream/RTCConfiguration.h:

(WebCore::RTCIceServer::create):
(WebCore::RTCIceServer::username):
(WebCore::RTCIceServer::RTCIceServer):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r155344 r155346  
     12013-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
    1172013-09-09  Antti Koivisto  <antti@apple.com>
    218
  • trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp

    r155057 r155346  
    9494        }
    9595
    96         String urlString, credential;
     96        String urlString, credential, username;
    9797        ok = iceServer.get("url", urlString);
    9898        if (!ok) {
     
    107107
    108108        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));
    111112    }
    112113
  • trunk/Source/WebCore/platform/mediastream/RTCConfiguration.h

    r124421 r155346  
    4444class RTCIceServer : public RefCounted<RTCIceServer> {
    4545public:
    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)
    4747    {
    48         return adoptRef(new RTCIceServer(uri, credential));
     48        return adoptRef(new RTCIceServer(uri, credential, username));
    4949    }
    5050    virtual ~RTCIceServer() { }
     
    5252    const KURL& uri() { return m_uri; }
    5353    const String& credential() { return m_credential; }
     54    const String& username() { return m_username; }
    5455
    5556private:
    56     RTCIceServer(const KURL& uri, const String& credential)
     57    RTCIceServer(const KURL& uri, const String& credential, const String& username)
    5758        : m_uri(uri)
    5859        , m_credential(credential)
     60        , m_username(username)
    5961    {
    6062    }
     
    6264    KURL m_uri;
    6365    String m_credential;
     66    String m_username;
    6467};
    6568
Note: See TracChangeset for help on using the changeset viewer.