| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |