summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/jingle_info_request.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-25 03:32:47 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-25 03:32:47 +0000
commit426199abc7929b84c80df803b828f3f9c47b4b6d (patch)
tree912d018912c59db0757d08e4362152107b64ef01 /remoting/jingle_glue/jingle_info_request.cc
parent9f1b6eae5dda1b4fd5c6d8e960e8aef1f7540d76 (diff)
downloadchromium_src-426199abc7929b84c80df803b828f3f9c47b4b6d.zip
chromium_src-426199abc7929b84c80df803b828f3f9c47b4b6d.tar.gz
chromium_src-426199abc7929b84c80df803b828f3f9c47b4b6d.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@123635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/jingle_info_request.cc')
-rw-r--r--remoting/jingle_glue/jingle_info_request.cc3
1 files changed, 2 insertions, 1 deletions
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) {