Lines Matching refs:observer
110 webrtc::SetSessionDescriptionObserver* observer) in SetSessionDescriptionMsg()
111 : observer(observer) { in SetSessionDescriptionMsg()
114 rtc::scoped_refptr<webrtc::SetSessionDescriptionObserver> observer; member
120 webrtc::CreateSessionDescriptionObserver* observer) in CreateSessionDescriptionMsg()
121 : observer(observer) {} in CreateSessionDescriptionMsg()
123 rtc::scoped_refptr<webrtc::CreateSessionDescriptionObserver> observer; member
128 GetStatsMsg(webrtc::StatsObserver* observer, in GetStatsMsg()
130 : observer(observer), track(track) { in GetStatsMsg()
132 rtc::scoped_refptr<webrtc::StatsObserver> observer; member
593 PeerConnectionObserver* observer) { in Initialize() argument
595 RTC_DCHECK(observer != nullptr); in Initialize()
596 if (!observer) { in Initialize()
599 observer_ = observer; in Initialize()
689 MediaStreamObserver* observer = new MediaStreamObserver(local_stream); in AddStream() local
690 observer->SignalAudioTrackAdded.connect(this, in AddStream()
692 observer->SignalAudioTrackRemoved.connect( in AddStream()
694 observer->SignalVideoTrackAdded.connect(this, in AddStream()
696 observer->SignalVideoTrackRemoved.connect( in AddStream()
698 stream_observers_.push_back(rtc::scoped_ptr<MediaStreamObserver>(observer)); in AddStream()
725 [local_stream](const rtc::scoped_ptr<MediaStreamObserver>& observer) { in RemoveStream() argument
726 return observer->stream()->label().compare(local_stream->label()) == in RemoveStream()
797 bool PeerConnection::GetStats(StatsObserver* observer, in GetStats() argument
802 if (!VERIFY(observer != NULL)) { in GetStats()
809 new GetStatsMsg(observer, track)); in GetStats()
857 void PeerConnection::CreateOffer(CreateSessionDescriptionObserver* observer, in CreateOffer() argument
860 if (!VERIFY(observer != nullptr)) { in CreateOffer()
906 CreateOffer(observer, options); in CreateOffer()
909 void PeerConnection::CreateOffer(CreateSessionDescriptionObserver* observer, in CreateOffer() argument
912 if (!VERIFY(observer != nullptr)) { in CreateOffer()
921 PostCreateSessionDescriptionFailure(observer, error); in CreateOffer()
925 session_->CreateOffer(observer, options, session_options); in CreateOffer()
929 CreateSessionDescriptionObserver* observer, in CreateAnswer() argument
932 if (!VERIFY(observer != nullptr)) { in CreateAnswer()
941 PostCreateSessionDescriptionFailure(observer, error); in CreateAnswer()
945 session_->CreateAnswer(observer, constraints, session_options); in CreateAnswer()
949 SetSessionDescriptionObserver* observer, in SetLocalDescription() argument
952 if (!VERIFY(observer != nullptr)) { in SetLocalDescription()
957 PostSetSessionDescriptionFailure(observer, "SessionDescription is NULL."); in SetLocalDescription()
965 PostSetSessionDescriptionFailure(observer, error); in SetLocalDescription()
1017 SetSessionDescriptionMsg* msg = new SetSessionDescriptionMsg(observer); in SetLocalDescription()
1027 SetSessionDescriptionObserver* observer, in SetRemoteDescription() argument
1030 if (!VERIFY(observer != nullptr)) { in SetRemoteDescription()
1035 PostSetSessionDescriptionFailure(observer, "SessionDescription is NULL."); in SetRemoteDescription()
1043 PostSetSessionDescriptionFailure(observer, error); in SetRemoteDescription()
1124 SetSessionDescriptionMsg* msg = new SetSessionDescriptionMsg(observer); in SetRemoteDescription()
1148 void PeerConnection::RegisterUMAObserver(UMAObserver* observer) { in RegisterUMAObserver() argument
1150 uma_observer_ = observer; in RegisterUMAObserver()
1221 param->observer->OnSuccess(); in OnMessage()
1228 param->observer->OnFailure(param->error); in OnMessage()
1235 param->observer->OnFailure(param->error); in OnMessage()
1243 param->observer->OnComplete(reports); in OnMessage()
1422 SetSessionDescriptionObserver* observer, in PostSetSessionDescriptionFailure() argument
1424 SetSessionDescriptionMsg* msg = new SetSessionDescriptionMsg(observer); in PostSetSessionDescriptionFailure()
1430 CreateSessionDescriptionObserver* observer, in PostCreateSessionDescriptionFailure() argument
1432 CreateSessionDescriptionMsg* msg = new CreateSessionDescriptionMsg(observer); in PostCreateSessionDescriptionFailure()