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 "chrome/browser/io_thread.h" | 5 #include "chrome/browser/io_thread.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 globals.quic_max_packet_length.CopyToIfSet(¶ms->quic_max_packet_length); | 1051 globals.quic_max_packet_length.CopyToIfSet(¶ms->quic_max_packet_length); |
1052 globals.quic_user_agent_id.CopyToIfSet(¶ms->quic_user_agent_id); | 1052 globals.quic_user_agent_id.CopyToIfSet(¶ms->quic_user_agent_id); |
1053 globals.quic_supported_versions.CopyToIfSet( | 1053 globals.quic_supported_versions.CopyToIfSet( |
1054 ¶ms->quic_supported_versions); | 1054 ¶ms->quic_supported_versions); |
1055 params->quic_connection_options = globals.quic_connection_options; | 1055 params->quic_connection_options = globals.quic_connection_options; |
1056 | 1056 |
1057 globals.origin_to_force_quic_on.CopyToIfSet( | 1057 globals.origin_to_force_quic_on.CopyToIfSet( |
1058 ¶ms->origin_to_force_quic_on); | 1058 ¶ms->origin_to_force_quic_on); |
1059 params->enable_user_alternate_protocol_ports = | 1059 params->enable_user_alternate_protocol_ports = |
1060 globals.enable_user_alternate_protocol_ports; | 1060 globals.enable_user_alternate_protocol_ports; |
| 1061 params->before_proxy_tunnel_request_callback = |
| 1062 base::Bind( |
| 1063 &data_reduction_proxy::DataReductionProxyAuthRequestHandler:: |
| 1064 MaybeAddProxyTunnelRequestHandler, |
| 1065 base::Unretained( |
| 1066 globals.data_reduction_proxy_auth_request_handler.get())); |
1061 } | 1067 } |
1062 | 1068 |
1063 base::TimeTicks IOThread::creation_time() const { | 1069 base::TimeTicks IOThread::creation_time() const { |
1064 return creation_time_; | 1070 return creation_time_; |
1065 } | 1071 } |
1066 | 1072 |
1067 net::SSLConfigService* IOThread::GetSSLConfigService() { | 1073 net::SSLConfigService* IOThread::GetSSLConfigService() { |
1068 return ssl_config_service_manager_->Get(); | 1074 return ssl_config_service_manager_->Get(); |
1069 } | 1075 } |
1070 | 1076 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); | 1398 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); |
1393 for (size_t i = 0; i < supported_versions.size(); ++i) { | 1399 for (size_t i = 0; i < supported_versions.size(); ++i) { |
1394 net::QuicVersion version = supported_versions[i]; | 1400 net::QuicVersion version = supported_versions[i]; |
1395 if (net::QuicVersionToString(version) == quic_version) { | 1401 if (net::QuicVersionToString(version) == quic_version) { |
1396 return version; | 1402 return version; |
1397 } | 1403 } |
1398 } | 1404 } |
1399 | 1405 |
1400 return net::QUIC_VERSION_UNSUPPORTED; | 1406 return net::QUIC_VERSION_UNSUPPORTED; |
1401 } | 1407 } |
OLD | NEW |