#ifndef WebRTCPeerConnectionHandler_h
#define WebRTCPeerConnectionHandler_h
namespace blink {
class WebMediaConstraints;
class WebMediaStream;
class WebMediaStreamTrack;
class WebRTCConfiguration;
class WebRTCDTMFSenderHandler;
class WebRTCDataChannelHandler;
class WebRTCICECandidate;
class WebRTCPeerConnectionHandlerClient;
class WebRTCSessionDescription;
class WebRTCSessionDescriptionRequest;
class WebRTCStatsRequest;
class WebRTCVoidRequest;
class WebString;
struct WebRTCDataChannelInit;
class WebRTCPeerConnectionHandler {
public:
virtual ~WebRTCPeerConnectionHandler() { }
virtual bool initialize(const WebRTCConfiguration&, const WebMediaConstraints&) = 0;
virtual void createOffer(const WebRTCSessionDescriptionRequest&, const WebMediaConstraints&) = 0;
virtual void createAnswer(const WebRTCSessionDescriptionRequest&, const WebMediaConstraints&) = 0;
virtual void setLocalDescription(const WebRTCVoidRequest&, const WebRTCSessionDescription&) = 0;
virtual void setRemoteDescription(const WebRTCVoidRequest&, const WebRTCSessionDescription&) = 0;
virtual WebRTCSessionDescription localDescription() = 0;
virtual WebRTCSessionDescription remoteDescription() = 0;
virtual bool updateICE(const WebRTCConfiguration&, const WebMediaConstraints&) = 0;
virtual bool addICECandidate(const WebRTCICECandidate&) { return false; }
virtual bool addICECandidate(const WebRTCVoidRequest&, const WebRTCICECandidate&) { return false; }
virtual bool addStream(const WebMediaStream&, const WebMediaConstraints&) = 0;
virtual void removeStream(const WebMediaStream&) = 0;
virtual void getStats(const WebRTCStatsRequest&) = 0;
virtual WebRTCDataChannelHandler* createDataChannel(const WebString& label, const WebRTCDataChannelInit&) = 0;
virtual WebRTCDTMFSenderHandler* createDTMFSender(const WebMediaStreamTrack&) = 0;
virtual void stop() = 0;
};
}
#endif