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_request.h" | 5 #include "net/http/http_stream_factory_impl_request.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "net/http/bidirectional_stream_impl.h" | 10 #include "net/http/bidirectional_stream_impl.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const SSLConfig& used_ssl_config, | 79 const SSLConfig& used_ssl_config, |
80 const ProxyInfo& used_proxy_info, | 80 const ProxyInfo& used_proxy_info, |
81 WebSocketHandshakeStreamBase* stream) { | 81 WebSocketHandshakeStreamBase* stream) { |
82 DCHECK(completed_); | 82 DCHECK(completed_); |
83 delegate_->OnWebSocketHandshakeStreamReady( | 83 delegate_->OnWebSocketHandshakeStreamReady( |
84 used_ssl_config, used_proxy_info, stream); | 84 used_ssl_config, used_proxy_info, stream); |
85 } | 85 } |
86 | 86 |
87 void HttpStreamFactoryImpl::Request::OnStreamFailed( | 87 void HttpStreamFactoryImpl::Request::OnStreamFailed( |
88 int status, | 88 int status, |
89 const SSLConfig& used_ssl_config, | 89 const SSLConfig& used_ssl_config) { |
90 SSLFailureState ssl_failure_state) { | 90 delegate_->OnStreamFailed(status, used_ssl_config); |
91 delegate_->OnStreamFailed(status, used_ssl_config, ssl_failure_state); | |
92 } | 91 } |
93 | 92 |
94 void HttpStreamFactoryImpl::Request::OnCertificateError( | 93 void HttpStreamFactoryImpl::Request::OnCertificateError( |
95 int status, | 94 int status, |
96 const SSLConfig& used_ssl_config, | 95 const SSLConfig& used_ssl_config, |
97 const SSLInfo& ssl_info) { | 96 const SSLInfo& ssl_info) { |
98 delegate_->OnCertificateError(status, used_ssl_config, ssl_info); | 97 delegate_->OnCertificateError(status, used_ssl_config, ssl_info); |
99 } | 98 } |
100 | 99 |
101 void HttpStreamFactoryImpl::Request::OnNeedsProxyAuth( | 100 void HttpStreamFactoryImpl::Request::OnNeedsProxyAuth( |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 return spdy_session_key_.get() != NULL; | 165 return spdy_session_key_.get() != NULL; |
167 } | 166 } |
168 | 167 |
169 void HttpStreamFactoryImpl::Request::AddConnectionAttempts( | 168 void HttpStreamFactoryImpl::Request::AddConnectionAttempts( |
170 const ConnectionAttempts& attempts) { | 169 const ConnectionAttempts& attempts) { |
171 for (const auto& attempt : attempts) | 170 for (const auto& attempt : attempts) |
172 connection_attempts_.push_back(attempt); | 171 connection_attempts_.push_back(attempt); |
173 } | 172 } |
174 | 173 |
175 } // namespace net | 174 } // namespace net |
OLD | NEW |