From 426199abc7929b84c80df803b828f3f9c47b4b6d Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Sat, 25 Feb 2012 03:32:47 +0000 Subject: 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@123635 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/jingle_glue/jingle_info_request.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'remoting/jingle_glue/jingle_info_request.cc') diff --git a/remoting/jingle_glue/jingle_info_request.cc b/remoting/jingle_glue/jingle_info_request.cc index 56d93ca..eb5bd7b 100644 --- a/remoting/jingle_glue/jingle_info_request.cc +++ b/remoting/jingle_glue/jingle_info_request.cc @@ -32,7 +32,8 @@ void JingleInfoRequest::Send(const OnJingleInfoCallback& callback) { base::Bind(&JingleInfoRequest::OnResponse, base::Unretained(this))); } -void JingleInfoRequest::OnResponse(const buzz::XmlElement* stanza) { +void JingleInfoRequest::OnResponse(IqRequest* request, + const buzz::XmlElement* stanza) { const buzz::XmlElement* query = stanza->FirstNamed(buzz::QN_JINGLE_INFO_QUERY); if (query == NULL) { -- cgit v1.1