Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: remoting/jingle_glue/iq_sender.h

Issue 10161010: Handle IQ responses asynchronously. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/jingle_glue/iq_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_JINGLE_GLUE_IQ_SENDER_H_ 5 #ifndef REMOTING_JINGLE_GLUE_IQ_SENDER_H_
6 #define REMOTING_JINGLE_GLUE_IQ_SENDER_H_ 6 #define REMOTING_JINGLE_GLUE_IQ_SENDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 private: 93 private:
94 friend class IqSender; 94 friend class IqSender;
95 95
96 void CallCallback(const buzz::XmlElement* stanza); 96 void CallCallback(const buzz::XmlElement* stanza);
97 void OnTimeout(); 97 void OnTimeout();
98 98
99 // Called by IqSender when a response is received. 99 // Called by IqSender when a response is received.
100 void OnResponse(const buzz::XmlElement* stanza); 100 void OnResponse(const buzz::XmlElement* stanza);
101 101
102 void DeliverResponse(scoped_ptr<buzz::XmlElement> stanza);
103
102 IqSender* sender_; 104 IqSender* sender_;
103 IqSender::ReplyCallback callback_; 105 IqSender::ReplyCallback callback_;
104 std::string addressee_; 106 std::string addressee_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(IqRequest); 108 DISALLOW_COPY_AND_ASSIGN(IqRequest);
107 }; 109 };
108 110
109 } // namespace remoting 111 } // namespace remoting
110 112
111 #endif // REMOTING_JINGLE_GLUE_IQ_SENDER_H_ 113 #endif // REMOTING_JINGLE_GLUE_IQ_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/jingle_glue/iq_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698