| 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" |
| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 case WEBSOCKET_SOCKET_POOL: | 308 case WEBSOCKET_SOCKET_POOL: |
| 308 return websocket_socket_pool_manager_.get(); | 309 return websocket_socket_pool_manager_.get(); |
| 309 default: | 310 default: |
| 310 NOTREACHED(); | 311 NOTREACHED(); |
| 311 break; | 312 break; |
| 312 } | 313 } |
| 313 return NULL; | 314 return NULL; |
| 314 } | 315 } |
| 315 | 316 |
| 316 } // namespace net | 317 } // namespace net |
| OLD | NEW |