#ifndef WebRTCConfiguration_h
#define WebRTCConfiguration_h
#include "WebCommon.h"
#include "WebNonCopyable.h"
#include "WebPrivatePtr.h"
#include "WebVector.h"
namespace WebCore {
class RTCIceServer;
class RTCConfiguration;
}
namespace blink {
class WebString;
class WebURL;
class WebRTCICEServer {
public:
WebRTCICEServer() { }
WebRTCICEServer(const WebRTCICEServer& other) { assign(other); }
~WebRTCICEServer() { reset(); }
WebRTCICEServer& operator=(const WebRTCICEServer& other)
{
assign(other);
return *this;
}
BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServer&);
BLINK_PLATFORM_EXPORT void reset();
bool isNull() const { return m_private.isNull(); }
BLINK_PLATFORM_EXPORT WebURL uri() const;
BLINK_PLATFORM_EXPORT WebString username() const;
BLINK_PLATFORM_EXPORT WebString credential() const;
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebRTCICEServer(const WTF::PassRefPtr<WebCore::RTCIceServer>&);
#endif
private:
WebPrivatePtr<WebCore::RTCIceServer> m_private;
};
class WebRTCConfiguration {
public:
WebRTCConfiguration() { }
WebRTCConfiguration(const WebRTCConfiguration& other) { assign(other); }
~WebRTCConfiguration() { reset(); }
WebRTCConfiguration& operator=(const WebRTCConfiguration& other)
{
assign(other);
return *this;
}
BLINK_PLATFORM_EXPORT void assign(const WebRTCConfiguration&);
BLINK_PLATFORM_EXPORT void reset();
bool isNull() const { return m_private.isNull(); }
BLINK_PLATFORM_EXPORT size_t numberOfServers() const;
BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const;
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebRTCConfiguration(const WTF::PassRefPtr<WebCore::RTCConfiguration>&);
#endif
private:
WebPrivatePtr<WebCore::RTCConfiguration> m_private;
};
}
#endif