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

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

Issue 1775283002: [Domain Reliabiliy: net stack] Plumb received go away from server due to connection migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (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_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 372 }
373 373
374 void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const { 374 void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const {
375 if (HttpStreamFactory::spdy_enabled() && params_.enable_npn) { 375 if (HttpStreamFactory::spdy_enabled() && params_.enable_npn) {
376 *npn_protos = next_protos_; 376 *npn_protos = next_protos_;
377 } else { 377 } else {
378 npn_protos->clear(); 378 npn_protos->clear();
379 } 379 }
380 } 380 }
381 381
382 void HttpNetworkSession::PopulateNetErrorDetails(NetErrorDetails* details) {
383 quic_stream_factory_.PopulateNetErrorDetails(details);
384 }
385
382 ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager( 386 ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager(
383 SocketPoolType pool_type) { 387 SocketPoolType pool_type) {
384 switch (pool_type) { 388 switch (pool_type) {
385 case NORMAL_SOCKET_POOL: 389 case NORMAL_SOCKET_POOL:
386 return normal_socket_pool_manager_.get(); 390 return normal_socket_pool_manager_.get();
387 case WEBSOCKET_SOCKET_POOL: 391 case WEBSOCKET_SOCKET_POOL:
388 return websocket_socket_pool_manager_.get(); 392 return websocket_socket_pool_manager_.get();
389 default: 393 default:
390 NOTREACHED(); 394 NOTREACHED();
391 break; 395 break;
392 } 396 }
393 return NULL; 397 return NULL;
394 } 398 }
395 399
396 } // namespace net 400 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698