Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: remoting/jingle_glue/host_resolver.h

Issue 7598004: Resolve addresses of STUN/Relay servers in JingleInfoRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/jingle_glue/host_resolver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/jingle_glue/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698