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

Side by Side Diff: net/url_request/url_request_context_builder.cc

Issue 1836983002: [Cronet] Initialize disable_quic_bidirectional_streams and QUIC protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « components/cronet/android/cronet_bidirectional_stream_adapter.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 enable_alternative_service_with_different_host(false), 184 enable_alternative_service_with_different_host(false),
185 enable_quic(false), 185 enable_quic(false),
186 quic_max_server_configs_stored_in_properties(0), 186 quic_max_server_configs_stored_in_properties(0),
187 quic_delay_tcp_race(false), 187 quic_delay_tcp_race(false),
188 quic_max_number_of_lossy_connections(0), 188 quic_max_number_of_lossy_connections(0),
189 quic_prefer_aes(false), 189 quic_prefer_aes(false),
190 quic_packet_loss_threshold(1.0f), 190 quic_packet_loss_threshold(1.0f),
191 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), 191 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds),
192 quic_close_sessions_on_ip_change(false), 192 quic_close_sessions_on_ip_change(false),
193 quic_migrate_sessions_on_network_change(false), 193 quic_migrate_sessions_on_network_change(false),
194 quic_migrate_sessions_early(false) {} 194 quic_migrate_sessions_early(false),
195 quic_disable_bidirectional_streams(false) {}
mef 2016/03/28 19:22:42 I think we should also initialize proxy_delegate a
xunjieli 2016/03/28 19:57:19 Maybe I am missing something, but these two aren't
mef 2016/03/28 20:17:32 Oops, I was looking at HttpNetworkSession::Params.
195 196
196 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() 197 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams()
197 {} 198 {}
198 199
199 URLRequestContextBuilder::URLRequestContextBuilder() 200 URLRequestContextBuilder::URLRequestContextBuilder()
200 : data_enabled_(false), 201 : data_enabled_(false),
201 #if !defined(DISABLE_FILE_SUPPORT) 202 #if !defined(DISABLE_FILE_SUPPORT)
202 file_enabled_(false), 203 file_enabled_(false),
203 #endif 204 #endif
204 #if !defined(DISABLE_FTP_SUPPORT) 205 #if !defined(DISABLE_FTP_SUPPORT)
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 } 508 }
508 url_request_interceptors_.clear(); 509 url_request_interceptors_.clear();
509 } 510 }
510 storage->set_job_factory(std::move(top_job_factory)); 511 storage->set_job_factory(std::move(top_job_factory));
511 // TODO(willchan): Support sdch. 512 // TODO(willchan): Support sdch.
512 513
513 return std::move(context); 514 return std::move(context);
514 } 515 }
515 516
516 } // namespace net 517 } // namespace net
OLDNEW
« no previous file with comments | « components/cronet/android/cronet_bidirectional_stream_adapter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698