OLD | NEW |
| (Empty) |
1 // Copyright 2014 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 COMPONENTS_DEVTOOLS_BRIDGE_SOCKET_TUNNEL_SERVER_H_ | |
6 #define COMPONENTS_DEVTOOLS_BRIDGE_SOCKET_TUNNEL_SERVER_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "base/memory/scoped_ptr.h" | |
12 | |
13 namespace net { | |
14 class StreamSocket; | |
15 } | |
16 | |
17 namespace devtools_bridge { | |
18 | |
19 class AbstractDataChannel; | |
20 class SessionDependencyFactory; | |
21 | |
22 class SocketTunnelServer { | |
23 public: | |
24 SocketTunnelServer(SessionDependencyFactory* factory, | |
25 AbstractDataChannel* data_channel, | |
26 const std::string& socket_name); | |
27 ~SocketTunnelServer(); | |
28 | |
29 private: | |
30 class Connection; | |
31 class ConnectionController; | |
32 class DataChannelObserver; | |
33 | |
34 AbstractDataChannel* const data_channel_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(SocketTunnelServer); | |
37 }; | |
38 | |
39 } // namespace devtools_bridge | |
40 | |
41 #endif // COMPONENTS_DEVTOOLS_BRIDGE_SOCKET_TUNNEL_SERVER_H_ | |
OLD | NEW |