OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SERVER_HTTP_SERVER_H_ | 5 #ifndef NET_SERVER_HTTP_SERVER_H_ |
6 #define NET_SERVER_HTTP_SERVER_H_ | 6 #define NET_SERVER_HTTP_SERVER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "net/base/stream_listen_socket.h" | |
14 #include "net/http/http_status_code.h" | 13 #include "net/http/http_status_code.h" |
| 14 #include "net/socket/stream_listen_socket.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class HttpConnection; | 18 class HttpConnection; |
19 class HttpServerRequestInfo; | 19 class HttpServerRequestInfo; |
20 class IPEndPoint; | 20 class IPEndPoint; |
21 class WebSocket; | 21 class WebSocket; |
22 | 22 |
23 class HttpServer : public StreamListenSocket::Delegate, | 23 class HttpServer : public StreamListenSocket::Delegate, |
24 public base::RefCountedThreadSafe<HttpServer> { | 24 public base::RefCountedThreadSafe<HttpServer> { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 IdToConnectionMap id_to_connection_; | 92 IdToConnectionMap id_to_connection_; |
93 typedef std::map<StreamListenSocket*, HttpConnection*> SocketToConnectionMap; | 93 typedef std::map<StreamListenSocket*, HttpConnection*> SocketToConnectionMap; |
94 SocketToConnectionMap socket_to_connection_; | 94 SocketToConnectionMap socket_to_connection_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(HttpServer); | 96 DISALLOW_COPY_AND_ASSIGN(HttpServer); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace net | 99 } // namespace net |
100 | 100 |
101 #endif // NET_SERVER_HTTP_SERVER_H_ | 101 #endif // NET_SERVER_HTTP_SERVER_H_ |
OLD | NEW |