Chromium Code Reviews| Index: net/socket/client_socket_handle.h |
| diff --git a/net/socket/client_socket_handle.h b/net/socket/client_socket_handle.h |
| index 532aec4e7b924c52ec0bbed88b8e4e22d7b083bb..60fec5631aa7629ff66f959a1054278dd45c8ecc 100644 |
| --- a/net/socket/client_socket_handle.h |
| +++ b/net/socket/client_socket_handle.h |
| @@ -12,6 +12,7 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "base/time/time.h" |
| #include "net/base/completion_callback.h" |
| +#include "net/base/ip_endpoint.h" |
| #include "net/base/load_states.h" |
| #include "net/base/load_timing_info.h" |
| #include "net/base/net_errors.h" |
| @@ -20,6 +21,7 @@ |
| #include "net/http/http_response_info.h" |
| #include "net/log/net_log.h" |
| #include "net/socket/client_socket_pool.h" |
| +#include "net/socket/connection_attempts.h" |
| #include "net/socket/stream_socket.h" |
| namespace net { |
| @@ -136,6 +138,9 @@ class NET_EXPORT ClientSocketHandle { |
| void set_pending_http_proxy_connection(ClientSocketHandle* connection) { |
| pending_http_proxy_connection_.reset(connection); |
| } |
| + void set_connection_attempts(ConnectionAttempts attempts) { |
|
Randy Smith (Not in Mondays)
2015/04/10 21:15:03
Why note const&?
Deprecated (see juliatuttle)
2015/04/14 19:14:45
Done.
|
| + connection_attempts_ = attempts; |
| + } |
| // Only valid if there is no |socket_|. |
| bool is_ssl_error() const { |
| @@ -151,6 +156,9 @@ class NET_EXPORT ClientSocketHandle { |
| ClientSocketHandle* release_pending_http_proxy_connection() { |
| return pending_http_proxy_connection_.release(); |
| } |
| + const ConnectionAttempts& connection_attempts() { |
| + return connection_attempts_; |
| + } |
| StreamSocket* socket() { return socket_.get(); } |
| @@ -200,6 +208,7 @@ class NET_EXPORT ClientSocketHandle { |
| bool is_ssl_error_; |
| HttpResponseInfo ssl_error_response_info_; |
| scoped_ptr<ClientSocketHandle> pending_http_proxy_connection_; |
| + std::vector<ConnectionAttempt> connection_attempts_; |
| base::TimeTicks init_time_; |
| base::TimeDelta setup_time_; |