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_RELAY_PORT_ALLOCATOR_H_ |
| 6 #define REMOTING_JINGLE_GLUE_RELAY_PORT_ALLOCATOR_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "talk/base/sigslot.h" |
| 11 #include "talk/p2p/client/httpportallocator.h" |
| 12 |
| 13 namespace buzz { |
| 14 class XmppClient; |
| 15 } // namespace buzz |
| 16 |
| 17 namespace remoting { |
| 18 |
| 19 class RelayPortAllocator: public cricket::HttpPortAllocator, |
| 20 public sigslot::has_slots<> { |
| 21 public: |
| 22 RelayPortAllocator(talk_base::NetworkManager* network_manager, |
| 23 const std::string& user_agent): |
| 24 cricket::HttpPortAllocator(network_manager, user_agent) { } |
| 25 |
| 26 void OnJingleInfo(const std::string& token, |
| 27 const std::vector<std::string>& relay_hosts, |
| 28 const std::vector<talk_base::SocketAddress>& stun_hosts); |
| 29 |
| 30 void SetJingleInfo(buzz::XmppClient* client); |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(RelayPortAllocator); |
| 34 }; |
| 35 |
| 36 } // namespace remoting |
| 37 |
| 38 #endif // REMOTING_JINGLE_GLUE_RELAY_PORT_ALLOCATOR_H_ |
OLD | NEW |