| 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_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 Loading... |
| 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 |
| OLD | NEW |