| 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 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 16 #include "net/base/host_port_pair.h" |
| 16 #include "net/cert/mock_cert_verifier.h" | 17 #include "net/cert/mock_cert_verifier.h" |
| 17 #include "net/http/http_cache.h" | 18 #include "net/http/http_cache.h" |
| 18 #include "net/http/http_network_session.h" | 19 #include "net/http/http_network_session.h" |
| 19 #include "net/http/http_network_transaction.h" | 20 #include "net/http/http_network_transaction.h" |
| 20 #include "net/http/http_server_properties_impl.h" | 21 #include "net/http/http_server_properties_impl.h" |
| 21 #include "net/socket/socket_test_util.h" | 22 #include "net/socket/socket_test_util.h" |
| 22 #include "net/socket/ssl_client_socket.h" | 23 #include "net/socket/ssl_client_socket.h" |
| 23 #include "net/socket/transport_client_socket_pool.h" | 24 #include "net/socket/transport_client_socket_pool.h" |
| 24 #include "net/spdy/buffered_spdy_framer.h" | 25 #include "net/spdy/buffered_spdy_framer.h" |
| 25 #include "net/spdy/spdy_framer.h" | 26 #include "net/spdy/spdy_framer.h" |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 session_deps->enable_user_alternate_protocol_ports; | 431 session_deps->enable_user_alternate_protocol_ports; |
| 431 params.enable_npn = session_deps->enable_npn; | 432 params.enable_npn = session_deps->enable_npn; |
| 432 params.spdy_default_protocol = session_deps->protocol; | 433 params.spdy_default_protocol = session_deps->protocol; |
| 433 params.spdy_session_max_recv_window_size = | 434 params.spdy_session_max_recv_window_size = |
| 434 session_deps->session_max_recv_window_size; | 435 session_deps->session_max_recv_window_size; |
| 435 params.spdy_stream_max_recv_window_size = | 436 params.spdy_stream_max_recv_window_size = |
| 436 session_deps->stream_max_recv_window_size; | 437 session_deps->stream_max_recv_window_size; |
| 437 params.time_func = session_deps->time_func; | 438 params.time_func = session_deps->time_func; |
| 438 params.enable_spdy31 = session_deps->enable_spdy31; | 439 params.enable_spdy31 = session_deps->enable_spdy31; |
| 439 params.enable_http2 = session_deps->enable_http2; | 440 params.enable_http2 = session_deps->enable_http2; |
| 440 params.trusted_spdy_proxy = session_deps->trusted_spdy_proxy; | 441 params.proxy_delegate = session_deps->proxy_delegate.get(); |
| 441 params.parse_alternative_services = session_deps->parse_alternative_services; | 442 params.parse_alternative_services = session_deps->parse_alternative_services; |
| 442 params.enable_alternative_service_with_different_host = | 443 params.enable_alternative_service_with_different_host = |
| 443 session_deps->enable_alternative_service_with_different_host; | 444 session_deps->enable_alternative_service_with_different_host; |
| 444 params.net_log = session_deps->net_log; | 445 params.net_log = session_deps->net_log; |
| 445 return params; | 446 return params; |
| 446 } | 447 } |
| 447 | 448 |
| 448 SpdyURLRequestContext::SpdyURLRequestContext(NextProto protocol) | 449 SpdyURLRequestContext::SpdyURLRequestContext(NextProto protocol) |
| 449 : storage_(this) { | 450 : storage_(this) { |
| 450 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; | 451 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 } | 1342 } |
| 1342 } | 1343 } |
| 1343 | 1344 |
| 1344 void SpdyTestUtil::SetPriority(RequestPriority priority, | 1345 void SpdyTestUtil::SetPriority(RequestPriority priority, |
| 1345 SpdySynStreamIR* ir) const { | 1346 SpdySynStreamIR* ir) const { |
| 1346 ir->set_priority(ConvertRequestPriorityToSpdyPriority( | 1347 ir->set_priority(ConvertRequestPriorityToSpdyPriority( |
| 1347 priority, spdy_version())); | 1348 priority, spdy_version())); |
| 1348 } | 1349 } |
| 1349 | 1350 |
| 1350 } // namespace net | 1351 } // namespace net |
| OLD | NEW |