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

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

Issue 1472743002: Revert of Re-enable HTTP/2 over NPN (for OpenSSL). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | net/http/http_network_transaction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 if (HttpStreamFactory::spdy_enabled()) { 326 if (HttpStreamFactory::spdy_enabled()) {
327 *alpn_protos = next_protos_; 327 *alpn_protos = next_protos_;
328 } else { 328 } else {
329 alpn_protos->clear(); 329 alpn_protos->clear();
330 } 330 }
331 } 331 }
332 332
333 void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const { 333 void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const {
334 if (HttpStreamFactory::spdy_enabled() && params_.enable_npn) { 334 if (HttpStreamFactory::spdy_enabled() && params_.enable_npn) {
335 *npn_protos = next_protos_; 335 *npn_protos = next_protos_;
336 DisableHTTP2(npn_protos);
336 } else { 337 } else {
337 npn_protos->clear(); 338 npn_protos->clear();
338 } 339 }
339 } 340 }
340 341
341 bool HttpNetworkSession::HasSpdyExclusion( 342 bool HttpNetworkSession::HasSpdyExclusion(
342 HostPortPair host_port_pair) const { 343 HostPortPair host_port_pair) const {
343 return params_.forced_spdy_exclusions.find(host_port_pair) != 344 return params_.forced_spdy_exclusions.find(host_port_pair) !=
344 params_.forced_spdy_exclusions.end(); 345 params_.forced_spdy_exclusions.end();
345 } 346 }
346 347
347 ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager( 348 ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager(
348 SocketPoolType pool_type) { 349 SocketPoolType pool_type) {
349 switch (pool_type) { 350 switch (pool_type) {
350 case NORMAL_SOCKET_POOL: 351 case NORMAL_SOCKET_POOL:
351 return normal_socket_pool_manager_.get(); 352 return normal_socket_pool_manager_.get();
352 case WEBSOCKET_SOCKET_POOL: 353 case WEBSOCKET_SOCKET_POOL:
353 return websocket_socket_pool_manager_.get(); 354 return websocket_socket_pool_manager_.get();
354 default: 355 default:
355 NOTREACHED(); 356 NOTREACHED();
356 break; 357 break;
357 } 358 }
358 return NULL; 359 return NULL;
359 } 360 }
360 361
361 } // namespace net 362 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698