OLD | NEW |
1 // Copyright (c) 2010 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 #ifdef _WIN32 | 5 #ifdef _WIN32 |
6 #include <winsock2.h> | 6 #include <winsock2.h> |
7 #else | 7 #else |
8 #include <arpa/inet.h> | 8 #include <arpa/inet.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include <map> | |
12 | |
13 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
14 #include "base/logging.h" | 12 #include "base/logging.h" |
15 #include "base/md5.h" | 13 #include "base/md5.h" |
16 #include "base/string_util.h" | 14 #include "base/string_util.h" |
17 #include "net/server/http_listen_socket.h" | 15 #include "net/server/http_listen_socket.h" |
18 #include "net/server/http_server_request_info.h" | 16 #include "net/server/http_server_request_info.h" |
19 | 17 |
20 // must run in the IO thread | 18 // must run in the IO thread |
21 HttpListenSocket::HttpListenSocket(SOCKET s, | 19 HttpListenSocket::HttpListenSocket(SOCKET s, |
22 HttpListenSocket::Delegate* delegate) | 20 HttpListenSocket::Delegate* delegate) |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 307 } |
310 } | 308 } |
311 delegate_->OnHttpRequest(this, request.get()); | 309 delegate_->OnHttpRequest(this, request.get()); |
312 } | 310 } |
313 } | 311 } |
314 | 312 |
315 void HttpListenSocket::DidClose(ListenSocket* sock) { | 313 void HttpListenSocket::DidClose(ListenSocket* sock) { |
316 sock->Release(); | 314 sock->Release(); |
317 delegate_->OnClose(this); | 315 delegate_->OnClose(this); |
318 } | 316 } |
OLD | NEW |