Lines Matching full:globals
235 // See IOThread::Globals for details.
237 ConstructProxyScriptFetcherContext(IOThread::Globals* globals,
241 context->set_host_resolver(globals->host_resolver.get());
242 context->set_cert_verifier(globals->cert_verifier.get());
244 globals->transport_security_state.get());
246 globals->cert_transparency_verifier.get());
248 globals->http_auth_handler_factory.get());
249 context->set_proxy_service(globals->proxy_script_fetcher_proxy_service.get());
251 globals->proxy_script_fetcher_http_transaction_factory.get());
253 globals->proxy_script_fetcher_url_request_job_factory.get());
254 context->set_cookie_store(globals->system_cookie_store.get());
256 globals->system_channel_id_service.get());
257 context->set_network_delegate(globals->system_network_delegate.get());
259 globals->http_user_agent_settings.get());
267 ConstructSystemRequestContext(IOThread::Globals* globals,
271 context->set_host_resolver(globals->host_resolver.get());
272 context->set_cert_verifier(globals->cert_verifier.get());
274 globals->transport_security_state.get());
276 globals->cert_transparency_verifier.get());
278 globals->http_auth_handler_factory.get());
279 context->set_proxy_service(globals->system_proxy_service.get());
281 globals->system_http_transaction_factory.get());
282 context->set_job_factory(globals->system_url_request_job_factory.get());
283 context->set_cookie_store(globals->system_cookie_store.get());
285 globals->system_channel_id_service.get());
286 context->set_throttler_manager(globals->throttler_manager.get());
287 context->set_network_delegate(globals->system_network_delegate.get());
289 globals->http_user_agent_settings.get());
405 DCHECK(io_thread_->globals()->system_request_context.get());
407 return io_thread_->globals()->system_request_context.get();
415 IOThread::Globals::
417 Globals* globals)
418 : globals_(globals) {
422 IOThread::Globals::
428 IOThread::Globals::Globals()
437 IOThread::Globals::~Globals() {}
509 IOThread::Globals* IOThread::globals() {
514 void IOThread::SetGlobalsForTesting(Globals* globals) {
516 DCHECK(!globals || !globals_);
517 globals_ = globals;
557 globals_ = new Globals;
815 // to move this option to IOThread::Globals &
832 Globals* globals) {
838 globals->next_protos = net::NextProtosSpdy31();
839 globals->use_alternate_protocols.set(true);
842 globals->next_protos = net::NextProtosSpdy4Http2();
843 globals->use_alternate_protocols.set(true);
846 globals->next_protos = net::NextProtosSpdy4Http2();
847 globals->use_alternate_protocols.set(true);
850 globals->next_protos = net::NextProtosSpdy31();
851 globals->use_alternate_protocols.set(true);
854 globals->next_protos = net::NextProtosSpdy31();
855 globals->use_alternate_protocols.set(true);
982 const IOThread::Globals& globals,
984 params->host_resolver = globals.host_resolver.get();
985 params->cert_verifier = globals.cert_verifier.get();
986 params->channel_id_service = globals.system_channel_id_service.get();
987 params->transport_security_state = globals.transport_security_state.get();
988 params->ssl_config_service = globals.ssl_config_service.get();
989 params->http_auth_handler_factory = globals.http_auth_handler_factory.get();
991 globals.http_server_properties->GetWeakPtr();
992 params->network_delegate = globals.system_network_delegate.get();
993 params->host_mapping_rules = globals.host_mapping_rules.get();
995 globals.enable_ssl_connect_job_waiting;
996 params->ignore_certificate_errors = globals.ignore_certificate_errors;
997 params->testing_fixed_http_port = globals.testing_fixed_http_port;
998 params->testing_fixed_https_port = globals.testing_fixed_https_port;
999 globals.enable_tcp_fast_open_for_ssl.CopyToIfSet(
1002 globals.initial_max_spdy_concurrent_streams.CopyToIfSet(
1004 globals.force_spdy_single_domain.CopyToIfSet(
1006 globals.enable_spdy_compression.CopyToIfSet(
1008 globals.enable_spdy_ping_based_connection_checking.CopyToIfSet(
1010 globals.spdy_default_protocol.CopyToIfSet(
1012 params->next_protos = globals.next_protos;
1013 globals.trusted_spdy_proxy.CopyToIfSet(¶ms->trusted_spdy_proxy);
1014 globals.force_spdy_over_ssl.CopyToIfSet(¶ms->force_spdy_over_ssl);
1015 globals.force_spdy_always.CopyToIfSet(¶ms->force_spdy_always);
1016 params->forced_spdy_exclusions = globals.forced_spdy_exclusions;
1017 globals.use_alternate_protocols.CopyToIfSet(
1019 globals.alternate_protocol_probability_threshold.CopyToIfSet(
1021 globals.enable_websocket_over_spdy.CopyToIfSet(
1024 globals.enable_quic.CopyToIfSet(¶ms->enable_quic);
1025 globals.enable_quic_time_based_loss_detection.CopyToIfSet(
1027 globals.quic_always_require_handshake_confirmation.CopyToIfSet(
1029 globals.quic_disable_connection_pooling.CopyToIfSet(
1031 globals.enable_quic_port_selection.CopyToIfSet(
1033 globals.quic_max_packet_length.CopyToIfSet(¶ms->quic_max_packet_length);
1034 globals.quic_user_agent_id.CopyToIfSet(¶ms->quic_user_agent_id);
1035 globals.quic_supported_versions.CopyToIfSet(
1037 params->quic_connection_options = globals.quic_connection_options;
1039 globals.origin_to_force_quic_on.CopyToIfSet(
1042 globals.enable_user_alternate_protocol_ports;
1043 params->proxy_delegate = globals.data_reduction_proxy_delegate.get();
1117 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_);
1175 IOThread::Globals* globals) {
1177 globals->enable_quic.set(enable_quic);
1179 globals->enable_quic_time_based_loss_detection.set(
1182 globals->quic_always_require_handshake_confirmation.set(
1184 globals->quic_disable_connection_pooling.set(
1186 globals->enable_quic_port_selection.set(
1188 globals
1192 globals->quic_connection_options.push_back(net::kPACE);
1200 globals->quic_max_packet_length.set(max_packet_length);
1209 globals->quic_user_agent_id.set(quic_user_agent_id);
1215 globals->quic_supported_versions.set(supported_versions);
1221 globals->alternate_protocol_probability_threshold.set(threshold);
1222 globals->http_server_properties->SetAlternateProtocolProbabilityThreshold(
1231 globals->origin_to_force_quic_on.set(quic_origin);