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

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

Issue 2030023005: Disable AltSvc from insecure origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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/spdy/spdy_test_util_common.h ('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/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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 socket_factory(new MockClientSocketFactory), 341 socket_factory(new MockClientSocketFactory),
342 http_auth_handler_factory( 342 http_auth_handler_factory(
343 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 343 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
344 enable_ip_pooling(true), 344 enable_ip_pooling(true),
345 enable_ping(false), 345 enable_ping(false),
346 enable_user_alternate_protocol_ports(false), 346 enable_user_alternate_protocol_ports(false),
347 enable_npn(false), 347 enable_npn(false),
348 enable_priority_dependencies(true), 348 enable_priority_dependencies(true),
349 enable_spdy31(true), 349 enable_spdy31(true),
350 enable_quic(false), 350 enable_quic(false),
351 enable_alternative_service_for_insecure_origins(true),
351 protocol(protocol), 352 protocol(protocol),
352 session_max_recv_window_size( 353 session_max_recv_window_size(
353 SpdySession::GetDefaultInitialWindowSize(protocol)), 354 SpdySession::GetDefaultInitialWindowSize(protocol)),
354 stream_max_recv_window_size( 355 stream_max_recv_window_size(
355 SpdySession::GetDefaultInitialWindowSize(protocol)), 356 SpdySession::GetDefaultInitialWindowSize(protocol)),
356 time_func(&base::TimeTicks::Now), 357 time_func(&base::TimeTicks::Now),
357 parse_alternative_services(true), 358 parse_alternative_services(true),
358 enable_alternative_service_with_different_host(true), 359 enable_alternative_service_with_different_host(true),
359 net_log(NULL) { 360 net_log(NULL) {
360 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 361 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
(...skipping 19 matching lines...) Expand all
380 socket_factory(new MockClientSocketFactory), 381 socket_factory(new MockClientSocketFactory),
381 http_auth_handler_factory( 382 http_auth_handler_factory(
382 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 383 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
383 enable_ip_pooling(true), 384 enable_ip_pooling(true),
384 enable_ping(false), 385 enable_ping(false),
385 enable_user_alternate_protocol_ports(false), 386 enable_user_alternate_protocol_ports(false),
386 enable_npn(false), 387 enable_npn(false),
387 enable_priority_dependencies(true), 388 enable_priority_dependencies(true),
388 enable_spdy31(true), 389 enable_spdy31(true),
389 enable_quic(false), 390 enable_quic(false),
391 enable_alternative_service_for_insecure_origins(true),
390 protocol(protocol), 392 protocol(protocol),
391 session_max_recv_window_size( 393 session_max_recv_window_size(
392 SpdySession::GetDefaultInitialWindowSize(protocol)), 394 SpdySession::GetDefaultInitialWindowSize(protocol)),
393 stream_max_recv_window_size( 395 stream_max_recv_window_size(
394 SpdySession::GetDefaultInitialWindowSize(protocol)), 396 SpdySession::GetDefaultInitialWindowSize(protocol)),
395 time_func(&base::TimeTicks::Now), 397 time_func(&base::TimeTicks::Now),
396 parse_alternative_services(true), 398 parse_alternative_services(true),
397 enable_alternative_service_with_different_host(true), 399 enable_alternative_service_with_different_host(true),
398 net_log(NULL) { 400 net_log(NULL) {
399 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 401 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 params.http_server_properties = 434 params.http_server_properties =
433 session_deps->http_server_properties.GetWeakPtr(); 435 session_deps->http_server_properties.GetWeakPtr();
434 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping; 436 params.enable_spdy_ping_based_connection_checking = session_deps->enable_ping;
435 params.enable_user_alternate_protocol_ports = 437 params.enable_user_alternate_protocol_ports =
436 session_deps->enable_user_alternate_protocol_ports; 438 session_deps->enable_user_alternate_protocol_ports;
437 params.enable_npn = session_deps->enable_npn; 439 params.enable_npn = session_deps->enable_npn;
438 params.enable_priority_dependencies = 440 params.enable_priority_dependencies =
439 session_deps->enable_priority_dependencies; 441 session_deps->enable_priority_dependencies;
440 params.enable_spdy31 = session_deps->enable_spdy31; 442 params.enable_spdy31 = session_deps->enable_spdy31;
441 params.enable_quic = session_deps->enable_quic; 443 params.enable_quic = session_deps->enable_quic;
444 params.enable_alternative_service_for_insecure_origins =
445 session_deps->enable_alternative_service_for_insecure_origins;
442 params.spdy_default_protocol = session_deps->protocol; 446 params.spdy_default_protocol = session_deps->protocol;
443 params.spdy_session_max_recv_window_size = 447 params.spdy_session_max_recv_window_size =
444 session_deps->session_max_recv_window_size; 448 session_deps->session_max_recv_window_size;
445 params.spdy_stream_max_recv_window_size = 449 params.spdy_stream_max_recv_window_size =
446 session_deps->stream_max_recv_window_size; 450 session_deps->stream_max_recv_window_size;
447 params.time_func = session_deps->time_func; 451 params.time_func = session_deps->time_func;
448 params.proxy_delegate = session_deps->proxy_delegate.get(); 452 params.proxy_delegate = session_deps->proxy_delegate.get();
449 params.parse_alternative_services = session_deps->parse_alternative_services; 453 params.parse_alternative_services = session_deps->parse_alternative_services;
450 params.enable_alternative_service_with_different_host = 454 params.enable_alternative_service_with_different_host =
451 session_deps->enable_alternative_service_with_different_host; 455 session_deps->enable_alternative_service_with_different_host;
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 } 1318 }
1315 } 1319 }
1316 1320
1317 void SpdyTestUtil::SetPriority(RequestPriority priority, 1321 void SpdyTestUtil::SetPriority(RequestPriority priority,
1318 SpdySynStreamIR* ir) const { 1322 SpdySynStreamIR* ir) const {
1319 ir->set_priority(ConvertRequestPriorityToSpdyPriority( 1323 ir->set_priority(ConvertRequestPriorityToSpdyPriority(
1320 priority, spdy_version())); 1324 priority, spdy_version()));
1321 } 1325 }
1322 1326
1323 } // namespace net 1327 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698