OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_JINGLE_GLUE_JINGLE_INFO_TASK_H_ |
| 6 #define REMOTING_JINGLE_GLUE_JINGLE_INFO_TASK_H_ |
| 7 |
| 8 #include <vector> |
| 9 #include <string> |
| 10 |
| 11 #include "talk/base/sigslot.h" |
| 12 #include "talk/p2p/client/httpportallocator.h" |
| 13 #include "talk/xmpp/xmppengine.h" |
| 14 #include "talk/xmpp/xmpptask.h" |
| 15 |
| 16 namespace remoting { |
| 17 |
| 18 // JingleInfoTask is used to discover addresses of jingle servers. |
| 19 // See http://code.google.com/apis/talk/jep_extensions/jingleinfo.html |
| 20 // for more details about the protocol. |
| 21 // |
| 22 // This is a copy of googleclient/talk/app/jingleinfotask.h . |
| 23 class JingleInfoTask : public buzz::XmppTask { |
| 24 public: |
| 25 explicit JingleInfoTask(talk_base::TaskParent* parent) |
| 26 : XmppTask(parent, buzz::XmppEngine::HL_TYPE) {} |
| 27 |
| 28 virtual int ProcessStart(); |
| 29 void RefreshJingleInfoNow(); |
| 30 |
| 31 sigslot::signal3<const std::string&, |
| 32 const std::vector<std::string>&, |
| 33 const std::vector<talk_base::SocketAddress>&> |
| 34 SignalJingleInfo; |
| 35 |
| 36 protected: |
| 37 class JingleInfoGetTask; |
| 38 friend class JingleInfoGetTask; |
| 39 |
| 40 virtual bool HandleStanza(const buzz::XmlElement* stanza); |
| 41 }; |
| 42 |
| 43 } // namespace remoting |
| 44 |
| 45 #endif // REMOTING_JINGLE_GLUE_JINGLE_INFO_TASK_H_ |
OLD | NEW |