Revert of ui: Clean up damaged rects and clear them after painting. (patchset #2...
[chromium-blink-merge.git] / components / devtools_bridge / socket_tunnel_server.h
blob1dd3f4c694ab9f41d8f6b45d6bfe627a495f378b
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.
5 #ifndef COMPONENTS_DEVTOOLS_BRIDGE_SOCKET_TUNNEL_SERVER_H_
6 #define COMPONENTS_DEVTOOLS_BRIDGE_SOCKET_TUNNEL_SERVER_H_
8 #include <map>
9 #include <string>
11 #include "base/memory/scoped_ptr.h"
13 namespace net {
14 class StreamSocket;
17 namespace devtools_bridge {
19 class AbstractDataChannel;
20 class SessionDependencyFactory;
22 class SocketTunnelServer {
23 public:
24 SocketTunnelServer(SessionDependencyFactory* factory,
25 AbstractDataChannel* data_channel,
26 const std::string& socket_name);
27 ~SocketTunnelServer();
29 private:
30 class Connection;
31 class ConnectionController;
32 class DataChannelObserver;
34 AbstractDataChannel* const data_channel_;
36 DISALLOW_COPY_AND_ASSIGN(SocketTunnelServer);
39 } // namespace devtools_bridge
41 #endif // COMPONENTS_DEVTOOLS_BRIDGE_SOCKET_TUNNEL_SERVER_H_