OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_JINGLE_GLUE_HOST_RESOLVER_H_ |
| 6 #define REMOTING_JINGLE_GLUE_HOST_RESOLVER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "third_party/libjingle/source/talk/base/sigslot.h" |
| 12 #include "third_party/libjingle/source/talk/base/socketaddress.h" |
| 13 |
| 14 namespace remoting { |
| 15 |
| 16 // TODO(sergeyu): Move HostResolver and HostResolverFactory to |
| 17 // libjingle and use them in StunPort. |
| 18 |
| 19 class HostResolver { |
| 20 public: |
| 21 HostResolver(); |
| 22 virtual ~HostResolver(); |
| 23 |
| 24 virtual void Resolve(const talk_base::SocketAddress& address) = 0; |
| 25 |
| 26 sigslot::signal2<HostResolver*, const talk_base::SocketAddress&> SignalDone; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(HostResolver); |
| 30 }; |
| 31 |
| 32 class HostResolverFactory { |
| 33 public: |
| 34 HostResolverFactory() { } |
| 35 virtual ~HostResolverFactory() { } |
| 36 |
| 37 virtual HostResolver* CreateHostResolver() = 0; |
| 38 |
| 39 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(HostResolverFactory); |
| 41 }; |
| 42 |
| 43 } // namespace remoting |
| 44 |
| 45 #endif // REMOTING_JINGLE_GLUE_HOST_RESOLVER_H_ |
OLD | NEW |