Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: net/http/bidirectional_stream.cc

Issue 2093873002: Unwind fallback metrics and SSLFailureState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698