summaryrefslogtreecommitdiffstats
path: root/remoting/host/heartbeat_sender.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-26 00:28:07 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-26 00:28:07 +0000
commit137e7cd989d44bf12e57bf4d554fd36e3278f68f (patch)
tree690dc5e743becae2009b6bf7fbe35ae65c6b79b2 /remoting/host/heartbeat_sender.cc
parent76ff037d061c897dce0794628a8c6a442b2777c4 (diff)
downloadchromium_src-137e7cd989d44bf12e57bf4d554fd36e3278f68f.zip
chromium_src-137e7cd989d44bf12e57bf4d554fd36e3278f68f.tar.gz
chromium_src-137e7cd989d44bf12e57bf4d554fd36e3278f68f.tar.bz2
Implement timeouts for IQ requests.
Now the IqRequest class supports setting timeouts for each request, and JingleSession uses it to disconnect if no response is receive within 10 secons from a request. BUG=107925 Review URL: http://codereview.chromium.org/9452038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123680 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/heartbeat_sender.cc')
-rw-r--r--remoting/host/heartbeat_sender.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc
index e8dacd2..16ec93e 100644
--- a/remoting/host/heartbeat_sender.cc
+++ b/remoting/host/heartbeat_sender.cc
@@ -106,7 +106,8 @@ void HeartbeatSender::DoSendStanza() {
++sequence_id_;
}
-void HeartbeatSender::ProcessResponse(const XmlElement* response) {
+void HeartbeatSender::ProcessResponse(IqRequest* request,
+ const XmlElement* response) {
std::string type = response->Attr(buzz::QN_TYPE);
if (type == buzz::STR_ERROR) {
const XmlElement* error_element =