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/http/http_network_session.h" | 5 #include "net/http/http_network_session.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "net/http/http_auth_handler_factory.h" | 15 #include "net/http/http_auth_handler_factory.h" |
16 #include "net/http/http_response_body_drainer.h" | 16 #include "net/http/http_response_body_drainer.h" |
17 #include "net/http/http_stream_factory_impl.h" | 17 #include "net/http/http_stream_factory_impl.h" |
18 #include "net/http/url_security_manager.h" | 18 #include "net/http/url_security_manager.h" |
19 #include "net/proxy/proxy_service.h" | 19 #include "net/proxy/proxy_service.h" |
20 #include "net/quic/crypto/quic_random.h" | 20 #include "net/quic/crypto/quic_random.h" |
21 #include "net/quic/quic_clock.h" | 21 #include "net/quic/quic_clock.h" |
22 #include "net/quic/quic_crypto_client_stream_factory.h" | 22 #include "net/quic/quic_crypto_client_stream_factory.h" |
23 #include "net/quic/quic_protocol.h" | 23 #include "net/quic/quic_protocol.h" |
24 #include "net/quic/quic_stream_factory.h" | 24 #include "net/quic/quic_stream_factory.h" |
25 #include "net/quic/quic_utils.h" | 25 #include "net/quic/quic_utils.h" |
26 #include "net/socket/client_socket_factory.h" | 26 #include "net/socket/client_socket_factory.h" |
27 #include "net/socket/client_socket_pool_manager_impl.h" | 27 #include "net/socket/client_socket_pool_manager_impl.h" |
28 #include "net/socket/next_proto.h" | 28 #include "net/socket/next_proto.h" |
29 #include "net/socket/ssl_client_socket.h" | |
Ryan Sleevi
2014/12/12 21:33:28
unnecessary?
Bence
2014/12/12 22:08:43
Used in line 169, see comment in Patch Set 7.
| |
29 #include "net/spdy/hpack_huffman_aggregator.h" | 30 #include "net/spdy/hpack_huffman_aggregator.h" |
30 #include "net/spdy/spdy_session_pool.h" | 31 #include "net/spdy/spdy_session_pool.h" |
31 | 32 |
32 namespace { | 33 namespace { |
33 | 34 |
34 net::ClientSocketPoolManager* CreateSocketPoolManager( | 35 net::ClientSocketPoolManager* CreateSocketPoolManager( |
35 net::HttpNetworkSession::SocketPoolType pool_type, | 36 net::HttpNetworkSession::SocketPoolType pool_type, |
36 const net::HttpNetworkSession::Params& params) { | 37 const net::HttpNetworkSession::Params& params) { |
37 // TODO(yutak): Differentiate WebSocket pool manager and allow more | 38 // TODO(yutak): Differentiate WebSocket pool manager and allow more |
38 // simultaneous connections for WebSockets. | 39 // simultaneous connections for WebSockets. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
306 case WEBSOCKET_SOCKET_POOL: | 307 case WEBSOCKET_SOCKET_POOL: |
307 return websocket_socket_pool_manager_.get(); | 308 return websocket_socket_pool_manager_.get(); |
308 default: | 309 default: |
309 NOTREACHED(); | 310 NOTREACHED(); |
310 break; | 311 break; |
311 } | 312 } |
312 return NULL; | 313 return NULL; |
313 } | 314 } |
314 | 315 |
315 } // namespace net | 316 } // namespace net |
OLD | NEW |