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