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

Side by Side Diff: ios/chrome/browser/ios_chrome_io_thread.h

Issue 1699653002: Remove support for Alt-Svc/Alternate Protocol Probability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cronet and iOS Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ 5 #ifndef IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_
6 #define IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ 6 #define IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; 131 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings;
132 scoped_ptr<net::NetworkQualityEstimator> network_quality_estimator; 132 scoped_ptr<net::NetworkQualityEstimator> network_quality_estimator;
133 uint16_t testing_fixed_http_port; 133 uint16_t testing_fixed_http_port;
134 uint16_t testing_fixed_https_port; 134 uint16_t testing_fixed_https_port;
135 Optional<bool> enable_tcp_fast_open_for_ssl; 135 Optional<bool> enable_tcp_fast_open_for_ssl;
136 136
137 Optional<bool> enable_spdy31; 137 Optional<bool> enable_spdy31;
138 Optional<bool> enable_http2; 138 Optional<bool> enable_http2;
139 Optional<bool> parse_alternative_services; 139 Optional<bool> parse_alternative_services;
140 Optional<bool> enable_alternative_service_with_different_host; 140 Optional<bool> enable_alternative_service_with_different_host;
141 Optional<double> alternative_service_probability_threshold;
142 141
143 Optional<bool> enable_npn; 142 Optional<bool> enable_npn;
144 143
145 Optional<bool> enable_quic; 144 Optional<bool> enable_quic;
146 Optional<bool> enable_quic_for_proxies; 145 Optional<bool> enable_quic_for_proxies;
147 Optional<bool> quic_always_require_handshake_confirmation; 146 Optional<bool> quic_always_require_handshake_confirmation;
148 Optional<bool> quic_disable_connection_pooling; 147 Optional<bool> quic_disable_connection_pooling;
149 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 148 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
150 Optional<bool> quic_enable_connection_racing; 149 Optional<bool> quic_enable_connection_racing;
151 Optional<bool> quic_enable_non_blocking_io; 150 Optional<bool> quic_enable_non_blocking_io;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 342
344 // Returns the QUIC version specified by |quic_version| or 343 // Returns the QUIC version specified by |quic_version| or
345 // QUIC_VERSION_UNSUPPORTED if |quic_version| is invalid. 344 // QUIC_VERSION_UNSUPPORTED if |quic_version| is invalid.
346 static net::QuicVersion ParseQuicVersion(const std::string& quic_version); 345 static net::QuicVersion ParseQuicVersion(const std::string& quic_version);
347 346
348 // Returns the QUIC connection options specified by any flags in 347 // Returns the QUIC connection options specified by any flags in
349 // |quic_trial_params|. 348 // |quic_trial_params|.
350 static net::QuicTagVector GetQuicConnectionOptions( 349 static net::QuicTagVector GetQuicConnectionOptions(
351 const VariationParameters& quic_trial_params); 350 const VariationParameters& quic_trial_params);
352 351
353 // Returns the alternative service probability threshold specified by
354 // any flags in |quic_trial_params|.
355 static double GetAlternativeProtocolProbabilityThreshold(
356 const VariationParameters& quic_trial_params);
357
358 static net::URLRequestContext* ConstructSystemRequestContext( 352 static net::URLRequestContext* ConstructSystemRequestContext(
359 Globals* globals, 353 Globals* globals,
360 net::NetLog* net_log); 354 net::NetLog* net_log);
361 355
362 // The NetLog is owned by the application context, to allow logging from other 356 // The NetLog is owned by the application context, to allow logging from other
363 // threads during shutdown, but is used most frequently on the IO thread. 357 // threads during shutdown, but is used most frequently on the IO thread.
364 net_log::ChromeNetLog* net_log_; 358 net_log::ChromeNetLog* net_log_;
365 359
366 // These member variables are basically global, but their lifetimes are tied 360 // These member variables are basically global, but their lifetimes are tied
367 // to the IOSChromeIOThread. IOSChromeIOThread owns them all, despite not 361 // to the IOSChromeIOThread. IOSChromeIOThread owns them all, despite not
(...skipping 23 matching lines...) Expand all
391 system_url_request_context_getter_; 385 system_url_request_context_getter_;
392 386
393 const base::TimeTicks creation_time_; 387 const base::TimeTicks creation_time_;
394 388
395 base::WeakPtrFactory<IOSChromeIOThread> weak_factory_; 389 base::WeakPtrFactory<IOSChromeIOThread> weak_factory_;
396 390
397 DISALLOW_COPY_AND_ASSIGN(IOSChromeIOThread); 391 DISALLOW_COPY_AND_ASSIGN(IOSChromeIOThread);
398 }; 392 };
399 393
400 #endif // IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ 394 #endif // IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698