| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_proxy_client_socket_wrapper.h" | 5 #include "net/http/http_proxy_client_socket_wrapper.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/profiler/scoped_tracker.h" | 14 #include "base/profiler/scoped_tracker.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "net/base/proxy_delegate.h" | 16 #include "net/base/proxy_delegate.h" |
| 17 #include "net/http/http_proxy_client_socket.h" | 17 #include "net/http/http_proxy_client_socket.h" |
| 18 #include "net/http/http_response_info.h" | 18 #include "net/http/http_response_info.h" |
| 19 #include "net/log/net_log_event_type.h" | 19 #include "net/log/net_log_event_type.h" |
| 20 #include "net/log/net_log_source.h" | 20 #include "net/log/net_log_source.h" |
| 21 #include "net/log/net_log_source_type.h" | 21 #include "net/log/net_log_source_type.h" |
| 22 #include "net/socket/client_socket_handle.h" | 22 #include "net/socket/client_socket_handle.h" |
| 23 #include "net/spdy/spdy_proxy_client_socket.h" | 23 #include "net/spdy/chromium/spdy_proxy_client_socket.h" |
| 24 #include "net/spdy/spdy_session.h" | 24 #include "net/spdy/chromium/spdy_session.h" |
| 25 #include "net/spdy/spdy_session_pool.h" | 25 #include "net/spdy/chromium/spdy_session_pool.h" |
| 26 #include "net/spdy/spdy_stream.h" | 26 #include "net/spdy/chromium/spdy_stream.h" |
| 27 #include "net/ssl/ssl_cert_request_info.h" | 27 #include "net/ssl/ssl_cert_request_info.h" |
| 28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 | 31 |
| 32 HttpProxyClientSocketWrapper::HttpProxyClientSocketWrapper( | 32 HttpProxyClientSocketWrapper::HttpProxyClientSocketWrapper( |
| 33 const std::string& group_name, | 33 const std::string& group_name, |
| 34 RequestPriority priority, | 34 RequestPriority priority, |
| 35 ClientSocketPool::RespectLimits respect_limits, | 35 ClientSocketPool::RespectLimits respect_limits, |
| 36 base::TimeDelta connect_timeout_duration, | 36 base::TimeDelta connect_timeout_duration, |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 const HostResolver::RequestInfo& | 680 const HostResolver::RequestInfo& |
| 681 HttpProxyClientSocketWrapper::GetDestination() { | 681 HttpProxyClientSocketWrapper::GetDestination() { |
| 682 if (transport_params_) { | 682 if (transport_params_) { |
| 683 return transport_params_->destination(); | 683 return transport_params_->destination(); |
| 684 } else { | 684 } else { |
| 685 return ssl_params_->GetDirectConnectionParams()->destination(); | 685 return ssl_params_->GetDirectConnectionParams()->destination(); |
| 686 } | 686 } |
| 687 } | 687 } |
| 688 | 688 |
| 689 } // namespace net | 689 } // namespace net |
| OLD | NEW |