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

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

Issue 2690003: Copy the (early prototype of) remoting in Chrome into the public tree.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/jingle_glue/mock_objects.h ('k') | remoting/jingle_glue/relay_port_allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/mock_objects.h ('k') | remoting/jingle_glue/relay_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698