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

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

Issue 2115213002: Disable SPDY/3.1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on https://crrev.com/2129973002. Created 4 years, 5 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/spdy/spdy_test_util_common.h ('k') | net/url_request/url_request_context_builder.h » ('j') | 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/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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 proxy_service(std::move(proxy_service)), 350 proxy_service(std::move(proxy_service)),
351 ssl_config_service(new SSLConfigServiceDefaults), 351 ssl_config_service(new SSLConfigServiceDefaults),
352 socket_factory(new MockClientSocketFactory), 352 socket_factory(new MockClientSocketFactory),
353 http_auth_handler_factory( 353 http_auth_handler_factory(
354 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 354 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
355 http_server_properties(new HttpServerPropertiesImpl), 355 http_server_properties(new HttpServerPropertiesImpl),
356 enable_ip_pooling(true), 356 enable_ip_pooling(true),
357 enable_ping(false), 357 enable_ping(false),
358 enable_user_alternate_protocol_ports(false), 358 enable_user_alternate_protocol_ports(false),
359 enable_priority_dependencies(true), 359 enable_priority_dependencies(true),
360 enable_spdy31(true),
361 enable_quic(false), 360 enable_quic(false),
362 protocol(protocol), 361 protocol(protocol),
363 session_max_recv_window_size( 362 session_max_recv_window_size(
364 SpdySession::GetDefaultInitialWindowSize(protocol)), 363 SpdySession::GetDefaultInitialWindowSize(protocol)),
365 stream_max_recv_window_size( 364 stream_max_recv_window_size(
366 SpdySession::GetDefaultInitialWindowSize(protocol)), 365 SpdySession::GetDefaultInitialWindowSize(protocol)),
367 time_func(&base::TimeTicks::Now), 366 time_func(&base::TimeTicks::Now),
368 enable_http2_alternative_service_with_different_host(false), 367 enable_http2_alternative_service_with_different_host(false),
369 net_log(NULL) { 368 net_log(NULL) {
370 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 369 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 params.proxy_service = session_deps->proxy_service.get(); 409 params.proxy_service = session_deps->proxy_service.get();
411 params.ssl_config_service = session_deps->ssl_config_service.get(); 410 params.ssl_config_service = session_deps->ssl_config_service.get();
412 params.http_auth_handler_factory = 411 params.http_auth_handler_factory =
413 session_deps->http_auth_handler_factory.get(); 412 session_deps->http_auth_handler_factory.get();
414 params.http_server_properties = session_deps->http_server_properties.get(); 413 params.http_server_properties = session_deps->http_server_properties.get();
415 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping; 414 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping;
416 params.enable_user_alternate_protocol_ports = 415 params.enable_user_alternate_protocol_ports =
417 session_deps->enable_user_alternate_protocol_ports; 416 session_deps->enable_user_alternate_protocol_ports;
418 params.enable_priority_dependencies = 417 params.enable_priority_dependencies =
419 session_deps->enable_priority_dependencies; 418 session_deps->enable_priority_dependencies;
420 params.enable_spdy31 = session_deps->enable_spdy31;
421 params.enable_quic = session_deps->enable_quic; 419 params.enable_quic = session_deps->enable_quic;
422 params.spdy_default_protocol = session_deps->protocol; 420 params.spdy_default_protocol = session_deps->protocol;
423 params.spdy_session_max_recv_window_size = 421 params.spdy_session_max_recv_window_size =
424 session_deps->session_max_recv_window_size; 422 session_deps->session_max_recv_window_size;
425 params.spdy_stream_max_recv_window_size = 423 params.spdy_stream_max_recv_window_size =
426 session_deps->stream_max_recv_window_size; 424 session_deps->stream_max_recv_window_size;
427 params.time_func = session_deps->time_func; 425 params.time_func = session_deps->time_func;
428 params.proxy_delegate = session_deps->proxy_delegate.get(); 426 params.proxy_delegate = session_deps->proxy_delegate.get();
429 params.enable_http2_alternative_service_with_different_host = 427 params.enable_http2_alternative_service_with_different_host =
430 session_deps->enable_http2_alternative_service_with_different_host; 428 session_deps->enable_http2_alternative_service_with_different_host;
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 } 1281 }
1284 } 1282 }
1285 1283
1286 void SpdyTestUtil::SetPriority(RequestPriority priority, 1284 void SpdyTestUtil::SetPriority(RequestPriority priority,
1287 SpdySynStreamIR* ir) const { 1285 SpdySynStreamIR* ir) const {
1288 ir->set_priority(ConvertRequestPriorityToSpdyPriority( 1286 ir->set_priority(ConvertRequestPriorityToSpdyPriority(
1289 priority, spdy_version())); 1287 priority, spdy_version()));
1290 } 1288 }
1291 1289
1292 } // namespace net 1290 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698