OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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_BASE_TOOLS_HTTP_LISTEN_SOCKET_H_ | 5 #ifndef NET_BASE_TOOLS_HTTP_LISTEN_SOCKET_H_ |
6 #define NET_BASE_TOOLS_HTTP_LISTEN_SOCKET_H_ | 6 #define NET_BASE_TOOLS_HTTP_LISTEN_SOCKET_H_ |
7 | 7 |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "net/base/listen_socket.h" | 9 #include "net/base/listen_socket.h" |
10 | 10 |
11 class HttpServerRequestInfo; | 11 class HttpServerRequestInfo; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual ~HttpListenSocket(); | 47 virtual ~HttpListenSocket(); |
48 | 48 |
49 // Expects the raw data to be stored in recv_data_. If parsing is successful, | 49 // Expects the raw data to be stored in recv_data_. If parsing is successful, |
50 // will remove the data parsed from recv_data_, leaving only the unused | 50 // will remove the data parsed from recv_data_, leaving only the unused |
51 // recv data. | 51 // recv data. |
52 HttpServerRequestInfo* ParseHeaders(); | 52 HttpServerRequestInfo* ParseHeaders(); |
53 | 53 |
54 HttpListenSocket::Delegate* delegate_; | 54 HttpListenSocket::Delegate* delegate_; |
55 std::string recv_data_; | 55 std::string recv_data_; |
56 | 56 |
57 DISALLOW_EVIL_CONSTRUCTORS(HttpListenSocket); | 57 DISALLOW_COPY_AND_ASSIGN(HttpListenSocket); |
58 }; | 58 }; |
59 | 59 |
60 #endif // NET_BASE_TOOLS_HTTP_LISTEN_SOCKET_H_ | 60 #endif // NET_BASE_TOOLS_HTTP_LISTEN_SOCKET_H_ |
OLD | NEW |