| 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/bidirectional_stream.h" | 5 #include "net/http/bidirectional_stream.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 312 } |
| 313 | 313 |
| 314 void BidirectionalStream::OnWebSocketHandshakeStreamReady( | 314 void BidirectionalStream::OnWebSocketHandshakeStreamReady( |
| 315 const SSLConfig& used_ssl_config, | 315 const SSLConfig& used_ssl_config, |
| 316 const ProxyInfo& used_proxy_info, | 316 const ProxyInfo& used_proxy_info, |
| 317 WebSocketHandshakeStreamBase* stream) { | 317 WebSocketHandshakeStreamBase* stream) { |
| 318 NOTREACHED(); | 318 NOTREACHED(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 void BidirectionalStream::OnStreamFailed(int result, | 321 void BidirectionalStream::OnStreamFailed(int result, |
| 322 const SSLConfig& used_ssl_config, | 322 const SSLConfig& used_ssl_config) { |
| 323 SSLFailureState ssl_failure_state) { | |
| 324 DCHECK_LT(result, 0); | 323 DCHECK_LT(result, 0); |
| 325 DCHECK_NE(result, ERR_IO_PENDING); | 324 DCHECK_NE(result, ERR_IO_PENDING); |
| 326 DCHECK(stream_request_); | 325 DCHECK(stream_request_); |
| 327 | 326 |
| 328 NotifyFailed(result); | 327 NotifyFailed(result); |
| 329 } | 328 } |
| 330 | 329 |
| 331 void BidirectionalStream::OnCertificateError(int result, | 330 void BidirectionalStream::OnCertificateError(int result, |
| 332 const SSLConfig& used_ssl_config, | 331 const SSLConfig& used_ssl_config, |
| 333 const SSLInfo& ssl_info) { | 332 const SSLInfo& ssl_info) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 NotifyFailed(ERR_HTTPS_PROXY_TUNNEL_RESPONSE); | 364 NotifyFailed(ERR_HTTPS_PROXY_TUNNEL_RESPONSE); |
| 366 } | 365 } |
| 367 | 366 |
| 368 void BidirectionalStream::OnQuicBroken() {} | 367 void BidirectionalStream::OnQuicBroken() {} |
| 369 | 368 |
| 370 void BidirectionalStream::NotifyFailed(int error) { | 369 void BidirectionalStream::NotifyFailed(int error) { |
| 371 delegate_->OnFailed(error); | 370 delegate_->OnFailed(error); |
| 372 } | 371 } |
| 373 | 372 |
| 374 } // namespace net | 373 } // namespace net |
| OLD | NEW |