OLD | NEW |
---|---|
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 #ifndef CHROME_BROWSER_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 Optional<net::NextProto> spdy_default_protocol; | 175 Optional<net::NextProto> spdy_default_protocol; |
176 net::NextProtoVector next_protos; | 176 net::NextProtoVector next_protos; |
177 Optional<std::string> trusted_spdy_proxy; | 177 Optional<std::string> trusted_spdy_proxy; |
178 Optional<bool> force_spdy_over_ssl; | 178 Optional<bool> force_spdy_over_ssl; |
179 Optional<bool> force_spdy_always; | 179 Optional<bool> force_spdy_always; |
180 std::set<net::HostPortPair> forced_spdy_exclusions; | 180 std::set<net::HostPortPair> forced_spdy_exclusions; |
181 Optional<bool> use_alternate_protocols; | 181 Optional<bool> use_alternate_protocols; |
182 Optional<double> alternate_protocol_probability_threshold; | 182 Optional<double> alternate_protocol_probability_threshold; |
183 | 183 |
184 Optional<bool> enable_quic; | 184 Optional<bool> enable_quic; |
185 Optional<bool> enable_quic_for_proxies; | |
185 Optional<bool> enable_quic_port_selection; | 186 Optional<bool> enable_quic_port_selection; |
186 Optional<bool> quic_always_require_handshake_confirmation; | 187 Optional<bool> quic_always_require_handshake_confirmation; |
187 Optional<bool> quic_disable_connection_pooling; | 188 Optional<bool> quic_disable_connection_pooling; |
188 Optional<int> quic_load_server_info_timeout_ms; | 189 Optional<int> quic_load_server_info_timeout_ms; |
189 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 190 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
190 Optional<bool> quic_enable_truncated_connection_ids; | 191 Optional<bool> quic_enable_truncated_connection_ids; |
191 Optional<size_t> quic_max_packet_length; | 192 Optional<size_t> quic_max_packet_length; |
192 net::QuicTagVector quic_connection_options; | 193 net::QuicTagVector quic_connection_options; |
193 Optional<std::string> quic_user_agent_id; | 194 Optional<std::string> quic_user_agent_id; |
194 Optional<net::QuicVersionVector> quic_supported_versions; | 195 Optional<net::QuicVersionVector> quic_supported_versions; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 | 229 |
229 // Clears the host cache. Intended to be used to prevent exposing recently | 230 // Clears the host cache. Intended to be used to prevent exposing recently |
230 // visited sites on about:net-internals/#dns and about:dns pages. Must be | 231 // visited sites on about:net-internals/#dns and about:dns pages. Must be |
231 // called on the IO thread. | 232 // called on the IO thread. |
232 void ClearHostCache(); | 233 void ClearHostCache(); |
233 | 234 |
234 void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params); | 235 void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params); |
235 | 236 |
236 base::TimeTicks creation_time() const; | 237 base::TimeTicks creation_time() const; |
237 | 238 |
239 // Returns the field trial name for QUIC. | |
240 static std::string QuicFieldTrialName(); | |
Ryan Hamilton
2015/02/11 00:20:32
This returns the name of the *group* not the name
tbansal1
2015/02/11 01:25:25
Done.
| |
241 | |
242 // Returns true if QUIC should be enabled for proxies, either as a result | |
243 // of a field trial or a command line flag. | |
244 static bool ShouldEnableQuicForProxies(const base::CommandLine& command_line, | |
245 base::StringPiece quic_trial_group); | |
246 | |
238 private: | 247 private: |
239 // Map from name to value for all parameters associate with a field trial. | 248 // Map from name to value for all parameters associate with a field trial. |
240 typedef std::map<std::string, std::string> VariationParameters; | 249 typedef std::map<std::string, std::string> VariationParameters; |
241 | 250 |
242 // Provide SystemURLRequestContextGetter with access to | 251 // Provide SystemURLRequestContextGetter with access to |
243 // InitSystemRequestContext(). | 252 // InitSystemRequestContext(). |
244 friend class SystemURLRequestContextGetter; | 253 friend class SystemURLRequestContextGetter; |
245 | 254 |
246 friend class test::IOThreadPeer; | 255 friend class test::IOThreadPeer; |
247 | 256 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
451 bool is_spdy_disabled_by_policy_; | 460 bool is_spdy_disabled_by_policy_; |
452 | 461 |
453 const base::TimeTicks creation_time_; | 462 const base::TimeTicks creation_time_; |
454 | 463 |
455 base::WeakPtrFactory<IOThread> weak_factory_; | 464 base::WeakPtrFactory<IOThread> weak_factory_; |
456 | 465 |
457 DISALLOW_COPY_AND_ASSIGN(IOThread); | 466 DISALLOW_COPY_AND_ASSIGN(IOThread); |
458 }; | 467 }; |
459 | 468 |
460 #endif // CHROME_BROWSER_IO_THREAD_H_ | 469 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |