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/test/embedded_test_server/embedded_test_server.h" | 5 #include "net/test/embedded_test_server/embedded_test_server.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
16 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/test/embedded_test_server/http_connection.h" | 18 #include "net/test/embedded_test_server/http_connection.h" |
19 #include "net/test/embedded_test_server/http_request.h" | 19 #include "net/test/embedded_test_server/http_request.h" |
20 #include "net/test/embedded_test_server/http_response.h" | 20 #include "net/test/embedded_test_server/http_response.h" |
21 #include "net/tools/fetch/http_listen_socket.h" | 21 #include "net/tools/fetch/http_listen_socket.h" |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 namespace test_server { | 24 namespace test_server { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 std::map<StreamListenSocket*, HttpConnection*>::iterator it = | 238 std::map<StreamListenSocket*, HttpConnection*>::iterator it = |
239 connections_.find(socket); | 239 connections_.find(socket); |
240 if (it == connections_.end()) { | 240 if (it == connections_.end()) { |
241 return NULL; | 241 return NULL; |
242 } | 242 } |
243 return it->second; | 243 return it->second; |
244 } | 244 } |
245 | 245 |
246 } // namespace test_server | 246 } // namespace test_server |
247 } // namespace net | 247 } // namespace net |
OLD | NEW |