Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: net/spdy/chromium/spdy_test_util_common.cc

Issue 2910463004: Revert "Revert CLs landed in HttpStreamFactoryImpl to track down a crasher" (Closed)
Patch Set: rebased Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_stream_factory_test_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/chromium/spdy_test_util_common.h" 5 #include "net/spdy/chromium/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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 params.enable_http2_alternative_service = 404 params.enable_http2_alternative_service =
405 session_deps->enable_http2_alternative_service; 405 session_deps->enable_http2_alternative_service;
406 params.http_09_on_non_default_ports_enabled = 406 params.http_09_on_non_default_ports_enabled =
407 session_deps->http_09_on_non_default_ports_enabled; 407 session_deps->http_09_on_non_default_ports_enabled;
408 return params; 408 return params;
409 } 409 }
410 410
411 HttpNetworkSession::Context SpdySessionDependencies::CreateSessionContext( 411 HttpNetworkSession::Context SpdySessionDependencies::CreateSessionContext(
412 SpdySessionDependencies* session_deps) { 412 SpdySessionDependencies* session_deps) {
413 HttpNetworkSession::Context context; 413 HttpNetworkSession::Context context;
414 context.client_socket_factory = session_deps->socket_factory.get();
414 context.host_resolver = session_deps->host_resolver.get(); 415 context.host_resolver = session_deps->host_resolver.get();
415 context.cert_verifier = session_deps->cert_verifier.get(); 416 context.cert_verifier = session_deps->cert_verifier.get();
416 context.channel_id_service = session_deps->channel_id_service.get(); 417 context.channel_id_service = session_deps->channel_id_service.get();
417 context.transport_security_state = 418 context.transport_security_state =
418 session_deps->transport_security_state.get(); 419 session_deps->transport_security_state.get();
419 context.cert_transparency_verifier = 420 context.cert_transparency_verifier =
420 session_deps->cert_transparency_verifier.get(); 421 session_deps->cert_transparency_verifier.get();
421 context.ct_policy_enforcer = session_deps->ct_policy_enforcer.get(); 422 context.ct_policy_enforcer = session_deps->ct_policy_enforcer.get();
422 context.proxy_service = session_deps->proxy_service.get(); 423 context.proxy_service = session_deps->proxy_service.get();
423 context.ssl_config_service = session_deps->ssl_config_service.get(); 424 context.ssl_config_service = session_deps->ssl_config_service.get();
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 headers[GetSchemeKey()] = scheme.c_str(); 1167 headers[GetSchemeKey()] = scheme.c_str();
1167 headers[GetPathKey()] = path.c_str(); 1168 headers[GetPathKey()] = path.c_str();
1168 if (content_length) { 1169 if (content_length) {
1169 SpdyString length_str = base::Int64ToString(*content_length); 1170 SpdyString length_str = base::Int64ToString(*content_length);
1170 headers["content-length"] = length_str; 1171 headers["content-length"] = length_str;
1171 } 1172 }
1172 return headers; 1173 return headers;
1173 } 1174 }
1174 1175
1175 } // namespace net 1176 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698