Chromium Code Reviews| 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_ADDRESS_RESOLVER_H_ | |
| 6 #define REMOTING_JINGLE_GLUE_HOST_ADDRESS_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 HostAddressRequest and HostAddressResolver to | |
| 17 // libjingle and use them in StunPort. | |
| 18 | |
| 19 class HostAddressRequest { | |
|
Wez
2011/08/08 23:07:59
Isn't this just a HostResolver?
Sergey Ulanov
2011/08/09 01:42:16
Done.
| |
| 20 public: | |
| 21 HostAddressRequest() { } | |
| 22 virtual ~HostAddressRequest() { } | |
| 23 | |
| 24 virtual void Request(const std::string& name) = 0; | |
| 25 | |
| 26 sigslot::signal2<HostAddressRequest*, | |
| 27 const talk_base::SocketAddress&> SignalDone; | |
|
Wez
2011/08/08 23:07:59
This only supports a single resolved address, wher
Sergey Ulanov
2011/08/09 01:42:16
It reflects the current behavior implemented in li
| |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(HostAddressRequest); | |
| 31 }; | |
| 32 | |
| 33 class HostAddressResolver { | |
|
Wez
2011/08/08 23:07:59
Isn't this a HostResolverFactory?
Sergey Ulanov
2011/08/09 01:42:16
Done.
| |
| 34 public: | |
| 35 HostAddressResolver() { } | |
| 36 virtual ~HostAddressResolver() { } | |
| 37 | |
| 38 virtual HostAddressRequest* CreateRequest() = 0; | |
| 39 | |
| 40 private: | |
| 41 DISALLOW_COPY_AND_ASSIGN(HostAddressResolver); | |
| 42 }; | |
| 43 | |
| 44 } // namespace remoting | |
| 45 | |
| 46 #endif // REMOTING_JINGLE_GLUE_HOST_ADDRESS_RESOLVER_H_ | |
| OLD | NEW |