// // Created by ax on 25/09/16. // #ifndef LIBWEBRTC_SETREMOTESESSIONDESCRIPTIONOBSERVER_H #define LIBWEBRTC_SETREMOTESESSIONDESCRIPTIONOBSERVER_H #include #include "Peer.h" class SetRemoteSessionDescriptionObserver: public webrtc::SetSessionDescriptionObserver { public: SetRemoteSessionDescriptionObserver(Peer *peer, webrtc::SessionDescriptionInterface* desc); void OnSuccess(); void OnFailure(const std::string& error); private: Peer *_peer; webrtc::SessionDescriptionInterface* _desc; protected: ~SetRemoteSessionDescriptionObserver() {} }; #endif //LIBWEBRTC_SETREMOTESESSIONDESCRIPTIONOBSERVER_H