Home | History | Annotate | Download | only in base

Lines Matching defs:Session

28 #include "talk/p2p/base/session.h"
189 // Session timeout has occured.
219 Session::Session(SessionManager *session_manager,
243 Session::~Session() {
258 Transport* Session::GetTransport(const std::string& content_name) {
265 void Session::set_allow_local_ips(bool allow) {
273 bool Session::Initiate(const std::string &to,
297 SetState(Session::STATE_SENTINITIATE);
303 bool Session::Accept(const SessionDescription* sdesc) {
320 SetState(Session::STATE_SENTACCEPT);
324 bool Session::Reject(const std::string& reason) {
345 bool Session::TerminateWithReason(const std::string& reason) {
373 bool Session::SendInfoMessage(const XmlElements& elems) {
384 TransportProxy* Session::GetTransportProxy(const Transport* transport) {
395 TransportProxy* Session::GetTransportProxy(const std::string& content_name) {
400 TransportProxy* Session::GetFirstTransportProxy() {
406 TransportInfos Session::GetEmptyTransportInfos(
418 bool Session::OnRemoteCandidates(
453 TransportProxy* Session::GetOrCreateTransportProxy(
465 this, &Session::OnTransportConnecting);
467 this, &Session::OnTransportWritable);
469 this, &Session::OnTransportRequestSignaling);
471 this, &Session::OnTransportCandidatesReady);
473 this, &Session::OnTransportSendError);
475 this, &Session::OnTransportChannelGone);
483 bool Session::CreateTransportProxies(const TransportInfos& tinfos,
497 void Session::SpeculativelyConnectAllTransportChannels() {
504 TransportParserMap Session::GetTransportParsers() {
510 ContentParserMap Session::GetContentParsers() {
516 TransportChannel* Session::CreateChannel(const std::string& content_name,
525 TransportChannel* Session::GetChannel(const std::string& content_name,
534 void Session::DestroyChannel(const std::string& content_name,
541 void Session::OnSignalingReady() {
549 void Session::OnTransportConnecting(Transport* transport) {
555 void Session::OnTransportWritable(Transport* transport) {
562 // during the lifetime of the session.
570 void Session::OnTransportRequestSignaling(Transport* transport) {
575 void Session::OnTransportCandidatesReady(Transport* transport,
595 void Session::OnTransportSendError(Transport* transport,
605 void Session::OnTransportChannelGone(Transport* transport,
611 void Session::OnIncomingMessage(const SessionMessage& msg) {
655 "unknown session message type",
667 void Session::OnFailedSend(const buzz::XmlElement* orig_stanza,
679 // If the error is a session redirect, call OnRedirectError, which will
680 // continue the session with a new remote JID.
700 LOG(LS_ERROR) << "Session error:\n" << error->Str() << "\n"
704 LOG(LS_ERROR) << "Session error without <error/> element, ignoring";
732 bool Session::OnInitiateMessage(const SessionMessage& msg,
754 // Users of Session may listen to state change and call Reject().
762 bool Session::OnAcceptMessage(const SessionMessage& msg, MessageError* error) {
775 // Users of Session may listen to state change and call Reject().
784 bool Session::OnRejectMessage(const SessionMessage& msg, MessageError* error) {
793 bool Session::OnInfoMessage(const SessionMessage& msg) {
798 bool Session::OnTerminateMessage(const SessionMessage& msg,
813 bool Session::OnTransportInfoMessage(const SessionMessage& msg,
827 bool Session::OnTransportAcceptMessage(const SessionMessage& msg,
834 bool Session::OnNotifyMessage(const SessionMessage& msg,
846 bool Session::OnUpdateMessage(const SessionMessage& msg,
866 bool Session::OnRedirectError(const SessionRedirect& redirect,
877 // When we receive a redirect, we point the session at the new JID
884 bool Session::CheckState(State state, MessageError* error) {
894 void Session::SetError(Error error) {
900 void Session::OnMessage(talk_base::Message *pmsg) {
922 bool Session::SendInitiateMessage(const SessionDescription* sdesc,
930 bool Session::WriteSessionAction(
941 bool Session::SetVideoView(
951 bool Session::SendAcceptMessage(const SessionDescription* sdesc,
964 bool Session::SendRejectMessage(const std::string& reason,
971 bool Session::SendTerminateMessage(const std::string& reason,
977 bool Session::WriteSessionAction(SignalingProtocol protocol,
984 bool Session::SendTransportInfoMessage(const TransportInfo& tinfo,
989 bool Session::WriteSessionAction(SignalingProtocol protocol,
1000 bool Session::SendViewMessage(const SessionView& view, SessionError* error) {
1006 bool Session::ResendAllTransportInfoMessages(SessionError* error) {
1025 bool Session::SendMessage(ActionType type, const XmlElements& action_elems,
1039 bool Session::SendMessage(ActionType type, const Action& action,
1051 bool Session
1067 bool Session::WriteActionMessage(SignalingProtocol protocol,
1081 void Session::SendAcknowledgementMessage(const buzz::XmlElement* stanza) {