This source file includes following definitions.
- assign
- reset
- uri
- username
- credential
- assign
- reset
- numberOfServers
- server
#include "config.h"
#include "public/platform/WebRTCConfiguration.h"
#include "platform/mediastream/RTCConfiguration.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebVector.h"
using namespace WebCore;
namespace blink {
WebRTCICEServer::WebRTCICEServer(const PassRefPtr<RTCIceServer>& iceServer)
: m_private(iceServer)
{
}
void WebRTCICEServer::assign(const WebRTCICEServer& other)
{
m_private = other.m_private;
}
void WebRTCICEServer::reset()
{
m_private.reset();
}
WebURL WebRTCICEServer::uri() const
{
ASSERT(!isNull());
return m_private->uri();
}
WebString WebRTCICEServer::username() const
{
ASSERT(!isNull());
return m_private->username();
}
WebString WebRTCICEServer::credential() const
{
ASSERT(!isNull());
return m_private->credential();
}
WebRTCConfiguration::WebRTCConfiguration(const PassRefPtr<RTCConfiguration>& configuration)
: m_private(configuration)
{
}
void WebRTCConfiguration::assign(const WebRTCConfiguration& other)
{
m_private = other.m_private;
}
void WebRTCConfiguration::reset()
{
m_private.reset();
}
size_t WebRTCConfiguration::numberOfServers() const
{
ASSERT(!isNull());
return m_private->numberOfServers();
}
WebRTCICEServer WebRTCConfiguration::server(size_t index) const
{
ASSERT(!isNull());
return WebRTCICEServer(m_private->server(index));
}
}