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