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

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

Issue 1069413002: Inline ClientSocketPoolManager::GroupTypeFromScheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | net/socket/client_socket_pool_manager.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_stream_factory_impl_job.h" 5 #include "net/http/http_stream_factory_impl_job.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 session_->http_server_properties()->MarkAlternativeServiceBroken( 1487 session_->http_server_properties()->MarkAlternativeServiceBroken(
1488 other_job_alternative_service_); 1488 other_job_alternative_service_);
1489 } 1489 }
1490 } 1490 }
1491 1491
1492 ClientSocketPoolManager::SocketGroupType 1492 ClientSocketPoolManager::SocketGroupType
1493 HttpStreamFactoryImpl::Job::GetSocketGroup() const { 1493 HttpStreamFactoryImpl::Job::GetSocketGroup() const {
1494 if (ShouldForceSpdySSL()) 1494 if (ShouldForceSpdySSL())
1495 return ClientSocketPoolManager::SSL_GROUP; 1495 return ClientSocketPoolManager::SSL_GROUP;
1496 1496
1497 return ClientSocketPoolManager::GroupTypeFromScheme( 1497 std::string scheme = alternative_service_url_.scheme();
1498 alternative_service_url_.scheme()); 1498 if (scheme == "ftp")
1499 return ClientSocketPoolManager::FTP_GROUP;
1500
1501 if (scheme == "https" || scheme == "wss")
1502 return ClientSocketPoolManager::SSL_GROUP;
1503
1504 return ClientSocketPoolManager::NORMAL_GROUP;
1499 } 1505 }
1500 1506
1501 } // namespace net 1507 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/socket/client_socket_pool_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698