| 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_stream_factory_impl_job.h" | 5 #include "net/http/http_stream_factory_impl_job.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "net/base/connection_type_histograms.h" | 15 #include "net/base/connection_type_histograms.h" |
| 16 #include "net/base/net_log.h" | 16 #include "net/base/net_log.h" |
| 17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
| 18 #include "net/base/ssl_cert_request_info.h" | |
| 19 #include "net/http/http_basic_stream.h" | 18 #include "net/http/http_basic_stream.h" |
| 20 #include "net/http/http_network_session.h" | 19 #include "net/http/http_network_session.h" |
| 21 #include "net/http/http_pipelined_connection.h" | 20 #include "net/http/http_pipelined_connection.h" |
| 22 #include "net/http/http_pipelined_host.h" | 21 #include "net/http/http_pipelined_host.h" |
| 23 #include "net/http/http_pipelined_host_pool.h" | 22 #include "net/http/http_pipelined_host_pool.h" |
| 24 #include "net/http/http_pipelined_stream.h" | 23 #include "net/http/http_pipelined_stream.h" |
| 25 #include "net/http/http_proxy_client_socket.h" | 24 #include "net/http/http_proxy_client_socket.h" |
| 26 #include "net/http/http_proxy_client_socket_pool.h" | 25 #include "net/http/http_proxy_client_socket_pool.h" |
| 27 #include "net/http/http_request_info.h" | 26 #include "net/http/http_request_info.h" |
| 28 #include "net/http/http_server_properties.h" | 27 #include "net/http/http_server_properties.h" |
| 29 #include "net/http/http_stream_factory.h" | 28 #include "net/http/http_stream_factory.h" |
| 30 #include "net/http/http_stream_factory_impl_request.h" | 29 #include "net/http/http_stream_factory_impl_request.h" |
| 31 #include "net/quic/quic_http_stream.h" | 30 #include "net/quic/quic_http_stream.h" |
| 32 #include "net/socket/client_socket_handle.h" | 31 #include "net/socket/client_socket_handle.h" |
| 33 #include "net/socket/client_socket_pool.h" | 32 #include "net/socket/client_socket_pool.h" |
| 34 #include "net/socket/client_socket_pool_manager.h" | 33 #include "net/socket/client_socket_pool_manager.h" |
| 35 #include "net/socket/socks_client_socket_pool.h" | 34 #include "net/socket/socks_client_socket_pool.h" |
| 36 #include "net/socket/ssl_client_socket.h" | 35 #include "net/socket/ssl_client_socket.h" |
| 37 #include "net/socket/ssl_client_socket_pool.h" | 36 #include "net/socket/ssl_client_socket_pool.h" |
| 38 #include "net/spdy/spdy_http_stream.h" | 37 #include "net/spdy/spdy_http_stream.h" |
| 39 #include "net/spdy/spdy_session.h" | 38 #include "net/spdy/spdy_session.h" |
| 40 #include "net/spdy/spdy_session_pool.h" | 39 #include "net/spdy/spdy_session_pool.h" |
| 40 #include "net/ssl/ssl_cert_request_info.h" |
| 41 | 41 |
| 42 namespace net { | 42 namespace net { |
| 43 | 43 |
| 44 // Returns parameters associated with the start of a HTTP stream job. | 44 // Returns parameters associated with the start of a HTTP stream job. |
| 45 Value* NetLogHttpStreamJobCallback(const GURL* original_url, | 45 Value* NetLogHttpStreamJobCallback(const GURL* original_url, |
| 46 const GURL* url, | 46 const GURL* url, |
| 47 NetLog::LogLevel /* log_level */) { | 47 NetLog::LogLevel /* log_level */) { |
| 48 DictionaryValue* dict = new DictionaryValue(); | 48 DictionaryValue* dict = new DictionaryValue(); |
| 49 dict->SetString("original_url", original_url->GetOrigin().spec()); | 49 dict->SetString("original_url", original_url->GetOrigin().spec()); |
| 50 dict->SetString("url", url->GetOrigin().spec()); | 50 dict->SetString("url", url->GetOrigin().spec()); |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 (net::LOAD_MAIN_FRAME | net::LOAD_SUB_FRAME | net::LOAD_PREFETCH | | 1351 (net::LOAD_MAIN_FRAME | net::LOAD_SUB_FRAME | net::LOAD_PREFETCH | |
| 1352 net::LOAD_IS_DOWNLOAD)) { | 1352 net::LOAD_IS_DOWNLOAD)) { |
| 1353 // Avoid pipelining resources that may be streamed for a long time. | 1353 // Avoid pipelining resources that may be streamed for a long time. |
| 1354 return false; | 1354 return false; |
| 1355 } | 1355 } |
| 1356 return stream_factory_->http_pipelined_host_pool_.IsKeyEligibleForPipelining( | 1356 return stream_factory_->http_pipelined_host_pool_.IsKeyEligibleForPipelining( |
| 1357 *http_pipelining_key_.get()); | 1357 *http_pipelining_key_.get()); |
| 1358 } | 1358 } |
| 1359 | 1359 |
| 1360 } // namespace net | 1360 } // namespace net |
| OLD | NEW |