| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_JINGLE_INFO_REQUEST_H_ | 5 #ifndef REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_ |
| 6 #define REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_ | 6 #define REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const std::vector<talk_base::SocketAddress>&)> OnJingleInfoCallback; | 47 const std::vector<talk_base::SocketAddress>&)> OnJingleInfoCallback; |
| 48 | 48 |
| 49 explicit JingleInfoRequest(SignalStrategy* signal_strategy); | 49 explicit JingleInfoRequest(SignalStrategy* signal_strategy); |
| 50 virtual ~JingleInfoRequest(); | 50 virtual ~JingleInfoRequest(); |
| 51 | 51 |
| 52 void Send(const OnJingleInfoCallback& callback); | 52 void Send(const OnJingleInfoCallback& callback); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 struct PendingDnsRequest; | 55 struct PendingDnsRequest; |
| 56 | 56 |
| 57 void OnResponse(IqRequest* request, const buzz::XmlElement* stanza); | 57 void OnResponse(const buzz::XmlElement* stanza); |
| 58 | 58 |
| 59 IqSender iq_sender_; | 59 IqSender iq_sender_; |
| 60 scoped_ptr<IqRequest> request_; | 60 scoped_ptr<IqRequest> request_; |
| 61 OnJingleInfoCallback on_jingle_info_cb_; | 61 OnJingleInfoCallback on_jingle_info_cb_; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(JingleInfoRequest); | 63 DISALLOW_COPY_AND_ASSIGN(JingleInfoRequest); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace remoting | 66 } // namespace remoting |
| 67 | 67 |
| 68 #endif // REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_ | 68 #endif // REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_ |
| OLD | NEW |