OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/spdy/spdy_test_util_common.h" | 5 #include "net/spdy/spdy_test_util_common.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <utility> | 10 #include <utility> |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 session_deps->session_max_recv_window_size; | 396 session_deps->session_max_recv_window_size; |
397 params.spdy_stream_max_recv_window_size = | 397 params.spdy_stream_max_recv_window_size = |
398 session_deps->stream_max_recv_window_size; | 398 session_deps->stream_max_recv_window_size; |
399 params.time_func = session_deps->time_func; | 399 params.time_func = session_deps->time_func; |
400 params.proxy_delegate = session_deps->proxy_delegate.get(); | 400 params.proxy_delegate = session_deps->proxy_delegate.get(); |
401 params.enable_http2_alternative_service_with_different_host = | 401 params.enable_http2_alternative_service_with_different_host = |
402 session_deps->enable_http2_alternative_service_with_different_host; | 402 session_deps->enable_http2_alternative_service_with_different_host; |
403 params.net_log = session_deps->net_log; | 403 params.net_log = session_deps->net_log; |
404 params.http_09_on_non_default_ports_enabled = | 404 params.http_09_on_non_default_ports_enabled = |
405 session_deps->http_09_on_non_default_ports_enabled; | 405 session_deps->http_09_on_non_default_ports_enabled; |
| 406 params.restrict_to_one_preconnect_for_proxies = true; |
406 return params; | 407 return params; |
407 } | 408 } |
408 | 409 |
409 class AllowAnyCertCTPolicyEnforcer : public CTPolicyEnforcer { | 410 class AllowAnyCertCTPolicyEnforcer : public CTPolicyEnforcer { |
410 public: | 411 public: |
411 AllowAnyCertCTPolicyEnforcer() {} | 412 AllowAnyCertCTPolicyEnforcer() {} |
412 ~AllowAnyCertCTPolicyEnforcer() override = default; | 413 ~AllowAnyCertCTPolicyEnforcer() override = default; |
413 | 414 |
414 ct::CertPolicyCompliance DoesConformToCertPolicy( | 415 ct::CertPolicyCompliance DoesConformToCertPolicy( |
415 X509Certificate* cert, | 416 X509Certificate* cert, |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 headers[GetSchemeKey()] = scheme.c_str(); | 1126 headers[GetSchemeKey()] = scheme.c_str(); |
1126 headers[GetPathKey()] = path.c_str(); | 1127 headers[GetPathKey()] = path.c_str(); |
1127 if (content_length) { | 1128 if (content_length) { |
1128 std::string length_str = base::Int64ToString(*content_length); | 1129 std::string length_str = base::Int64ToString(*content_length); |
1129 headers["content-length"] = length_str; | 1130 headers["content-length"] = length_str; |
1130 } | 1131 } |
1131 return headers; | 1132 return headers; |
1132 } | 1133 } |
1133 | 1134 |
1134 } // namespace net | 1135 } // namespace net |
OLD | NEW |