Lines Matching refs:XmppChannel

91 XmppChannel::XmppChannel(const std::string& account,  in XmppChannel()  function in weave::XmppChannel
106 &XmppChannel::OnConnectivityChanged, weak_ptr_factory_.GetWeakPtr()));
110 void XmppChannel::OnMessageRead(size_t size, ErrorPtr error) { in OnMessageRead()
124 void XmppChannel::OnStreamStart(const std::string& node_name, in OnStreamStart()
129 void XmppChannel::OnStreamEnd(const std::string& node_name) { in OnStreamEnd()
139 base::Bind(&XmppChannel::Restart, task_ptr_factory_.GetWeakPtr()), {}); in OnStreamEnd()
145 void XmppChannel::OnStanza(std::unique_ptr<XmlNode> stanza) { in OnStanza()
152 base::Bind(&XmppChannel::HandleStanza, task_ptr_factory_.GetWeakPtr(), in OnStanza()
157 void XmppChannel::HandleStanza(std::unique_ptr<XmlNode> stanza) { in HandleStanza()
191 base::Bind(&XmppChannel::OnBindCompleted, in HandleStanza()
193 base::Bind(&XmppChannel::Restart, task_ptr_factory_.GetWeakPtr())); in HandleStanza()
217 void XmppChannel::CloseStream() { in CloseStream()
221 void XmppChannel::OnBindCompleted(std::unique_ptr<XmlNode> reply) { in OnBindCompleted()
237 base::Bind(&XmppChannel::OnSessionEstablished, in OnBindCompleted()
239 base::Bind(&XmppChannel::Restart, task_ptr_factory_.GetWeakPtr())); in OnBindCompleted()
242 void XmppChannel::OnSessionEstablished(std::unique_ptr<XmlNode> reply) { in OnSessionEstablished()
253 base::Bind(&XmppChannel::OnSubscribed, task_ptr_factory_.GetWeakPtr()), in OnSessionEstablished()
254 base::Bind(&XmppChannel::Restart, task_ptr_factory_.GetWeakPtr())); in OnSessionEstablished()
257 void XmppChannel::OnSubscribed(std::unique_ptr<XmlNode> reply) { in OnSubscribed()
267 void XmppChannel::HandleMessageStanza(std::unique_ptr<XmlNode> stanza) { in HandleMessageStanza()
286 void XmppChannel::CreateSslSocket() { in CreateSslSocket()
299 base::Bind(&XmppChannel::OnSslSocketReady, in CreateSslSocket()
303 void XmppChannel::OnSslSocketReady(std::unique_ptr<Stream> stream, in OnSslSocketReady()
312 FROM_HERE, base::Bind(&XmppChannel::CreateSslSocket, in OnSslSocketReady()
324 void XmppChannel::SendMessage(const std::string& message) { in SendMessage()
337 base::Bind(&XmppChannel::OnMessageSent, task_ptr_factory_.GetWeakPtr())); in SendMessage()
340 void XmppChannel::OnMessageSent(ErrorPtr error) { in OnMessageSent()
351 void XmppChannel::WaitForMessage() { in WaitForMessage()
358 base::Bind(&XmppChannel::OnMessageRead, task_ptr_factory_.GetWeakPtr())); in WaitForMessage()
361 std::string XmppChannel::GetName() const { in GetName()
365 bool XmppChannel::IsConnected() const { in IsConnected()
369 void XmppChannel::AddChannelParameters(base::DictionaryValue* channel_json) { in AddChannelParameters()
373 void XmppChannel::Restart() { in Restart()
379 void XmppChannel::Start(NotificationDelegate* delegate) { in Start()
386 void XmppChannel::Stop() { in Stop()
397 void XmppChannel::RestartXmppStream() { in RestartXmppStream()
405 void XmppChannel::SchedulePing(base::TimeDelta interval, in SchedulePing()
410 FROM_HERE, base::Bind(&XmppChannel::PingServer, in SchedulePing()
415 void XmppChannel::ScheduleRegularPing() { in ScheduleRegularPing()
420 void XmppChannel::ScheduleFastPing() { in ScheduleFastPing()
425 void XmppChannel::PingServer(base::TimeDelta timeout) { in PingServer()
437 base::Bind(&XmppChannel::OnPingResponse, task_ptr_factory_.GetWeakPtr(), in PingServer()
439 base::Bind(&XmppChannel::OnPingTimeout, task_ptr_factory_.GetWeakPtr(), in PingServer()
443 void XmppChannel::OnPingResponse(base::Time sent_time, in OnPingResponse()
451 void XmppChannel::OnPingTimeout(base::Time sent_time) { in OnPingTimeout()
457 void XmppChannel::OnConnectivityChanged() { in OnConnectivityChanged()