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 #include "net/server/http_server.h" | 5 #include "net/server/http_server.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/sys_byteorder.h" | 19 #include "base/sys_byteorder.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/server/http_connection.h" | 23 #include "net/server/http_connection.h" |
24 #include "net/server/http_server_request_info.h" | 24 #include "net/server/http_server_request_info.h" |
25 #include "net/server/http_server_response_info.h" | 25 #include "net/server/http_server_response_info.h" |
26 #include "net/server/web_socket.h" | 26 #include "net/server/web_socket.h" |
27 #include "net/socket/server_socket.h" | 27 #include "net/socket/server_socket.h" |
28 #include "net/socket/stream_socket.h" | 28 #include "net/socket/stream_socket.h" |
29 #include "net/socket/tcp_server_socket.h" | 29 #include "net/socket/tcp_server_socket.h" |
30 | 30 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 462 |
463 // This is called after any delegate callbacks are called to check if Close() | 463 // This is called after any delegate callbacks are called to check if Close() |
464 // has been called during callback processing. Using the pointer of connection, | 464 // has been called during callback processing. Using the pointer of connection, |
465 // |connection| is safe here because Close() deletes the connection in next run | 465 // |connection| is safe here because Close() deletes the connection in next run |
466 // loop. | 466 // loop. |
467 bool HttpServer::HasClosedConnection(HttpConnection* connection) { | 467 bool HttpServer::HasClosedConnection(HttpConnection* connection) { |
468 return FindConnection(connection->id()) != connection; | 468 return FindConnection(connection->id()) != connection; |
469 } | 469 } |
470 | 470 |
471 } // namespace net | 471 } // namespace net |
OLD | NEW |