| 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 <memory> | 10 #include <memory> |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 return http_session; | 412 return http_session; |
| 413 } | 413 } |
| 414 | 414 |
| 415 // static | 415 // static |
| 416 HttpNetworkSession::Params SpdySessionDependencies::CreateSessionParams( | 416 HttpNetworkSession::Params SpdySessionDependencies::CreateSessionParams( |
| 417 SpdySessionDependencies* session_deps) { | 417 SpdySessionDependencies* session_deps) { |
| 418 DCHECK(next_proto_is_spdy(session_deps->protocol)) << | 418 DCHECK(next_proto_is_spdy(session_deps->protocol)) << |
| 419 "Invalid protocol: " << session_deps->protocol; | 419 "Invalid protocol: " << session_deps->protocol; |
| 420 | 420 |
| 421 HttpNetworkSession::Params params; | 421 HttpNetworkSession::Params params; |
| 422 params.quic_crypto_client_stream_factory = |
| 423 session_deps->crypto_client_stream_factory.get(); |
| 422 params.host_resolver = session_deps->host_resolver.get(); | 424 params.host_resolver = session_deps->host_resolver.get(); |
| 425 params.quic_random = session_deps->quic_random.get(); |
| 423 params.cert_verifier = session_deps->cert_verifier.get(); | 426 params.cert_verifier = session_deps->cert_verifier.get(); |
| 424 params.channel_id_service = session_deps->channel_id_service.get(); | 427 params.channel_id_service = session_deps->channel_id_service.get(); |
| 425 params.transport_security_state = | 428 params.transport_security_state = |
| 426 session_deps->transport_security_state.get(); | 429 session_deps->transport_security_state.get(); |
| 427 params.proxy_service = session_deps->proxy_service.get(); | 430 params.proxy_service = session_deps->proxy_service.get(); |
| 428 params.ssl_config_service = session_deps->ssl_config_service.get(); | 431 params.ssl_config_service = session_deps->ssl_config_service.get(); |
| 429 params.http_auth_handler_factory = | 432 params.http_auth_handler_factory = |
| 430 session_deps->http_auth_handler_factory.get(); | 433 session_deps->http_auth_handler_factory.get(); |
| 431 params.http_server_properties = | 434 params.http_server_properties = |
| 432 session_deps->http_server_properties.GetWeakPtr(); | 435 session_deps->http_server_properties.GetWeakPtr(); |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 } | 1321 } |
| 1319 } | 1322 } |
| 1320 | 1323 |
| 1321 void SpdyTestUtil::SetPriority(RequestPriority priority, | 1324 void SpdyTestUtil::SetPriority(RequestPriority priority, |
| 1322 SpdySynStreamIR* ir) const { | 1325 SpdySynStreamIR* ir) const { |
| 1323 ir->set_priority(ConvertRequestPriorityToSpdyPriority( | 1326 ir->set_priority(ConvertRequestPriorityToSpdyPriority( |
| 1324 priority, spdy_version())); | 1327 priority, spdy_version())); |
| 1325 } | 1328 } |
| 1326 | 1329 |
| 1327 } // namespace net | 1330 } // namespace net |
| OLD | NEW |