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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 Optional<size_t> initial_max_spdy_concurrent_streams; | 158 Optional<size_t> initial_max_spdy_concurrent_streams; |
159 Optional<size_t> max_spdy_concurrent_streams_limit; | 159 Optional<size_t> max_spdy_concurrent_streams_limit; |
160 Optional<bool> force_spdy_single_domain; | 160 Optional<bool> force_spdy_single_domain; |
161 Optional<bool> enable_spdy_ip_pooling; | 161 Optional<bool> enable_spdy_ip_pooling; |
162 Optional<bool> enable_spdy_compression; | 162 Optional<bool> enable_spdy_compression; |
163 Optional<bool> enable_spdy_ping_based_connection_checking; | 163 Optional<bool> enable_spdy_ping_based_connection_checking; |
164 Optional<net::NextProto> spdy_default_protocol; | 164 Optional<net::NextProto> spdy_default_protocol; |
165 Optional<string> trusted_spdy_proxy; | 165 Optional<string> trusted_spdy_proxy; |
166 Optional<bool> enable_quic; | 166 Optional<bool> enable_quic; |
167 Optional<bool> enable_quic_https; | 167 Optional<bool> enable_quic_https; |
| 168 Optional<bool> enable_quic_port_selection; |
168 Optional<size_t> quic_max_packet_length; | 169 Optional<size_t> quic_max_packet_length; |
169 Optional<net::QuicVersionVector> quic_supported_versions; | 170 Optional<net::QuicVersionVector> quic_supported_versions; |
170 Optional<net::HostPortPair> origin_to_force_quic_on; | 171 Optional<net::HostPortPair> origin_to_force_quic_on; |
171 bool enable_user_alternate_protocol_ports; | 172 bool enable_user_alternate_protocol_ports; |
172 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 173 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
173 // main frame load fails with a DNS error in order to provide more useful | 174 // main frame load fails with a DNS error in order to provide more useful |
174 // information to the renderer so it can show a more specific error page. | 175 // information to the renderer so it can show a more specific error page. |
175 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 176 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
176 scoped_ptr<net::NetworkTimeNotifier> network_time_notifier; | 177 scoped_ptr<net::NetworkTimeNotifier> network_time_notifier; |
177 }; | 178 }; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 // Returns true if QUIC should be enabled, either as a result | 268 // Returns true if QUIC should be enabled, either as a result |
268 // of a field trial or a command line flag. | 269 // of a field trial or a command line flag. |
269 bool ShouldEnableQuic(const CommandLine& command_line, | 270 bool ShouldEnableQuic(const CommandLine& command_line, |
270 base::StringPiece quic_trial_group); | 271 base::StringPiece quic_trial_group); |
271 | 272 |
272 // Returns true if HTTPS over QUIC should be enabled, either as a result | 273 // Returns true if HTTPS over QUIC should be enabled, either as a result |
273 // of a field trial or a command line flag. | 274 // of a field trial or a command line flag. |
274 bool ShouldEnableQuicHttps(const CommandLine& command_line, | 275 bool ShouldEnableQuicHttps(const CommandLine& command_line, |
275 base::StringPiece quic_trial_group); | 276 base::StringPiece quic_trial_group); |
276 | 277 |
| 278 // Returns true if the selection of the ephemeral port in bind() should be |
| 279 // performed by Chromium, and false if the OS should select the port. The OS |
| 280 // option is used to prevent Windows from posting a security security warning |
| 281 // dialog. |
| 282 // TODO(grt) bug=329255: Detect presence of rule on Windows that allows us to |
| 283 // do port selection without inducing a dialog. |
| 284 bool IOThread::ShouldEnableEnableQuicPortSelection( |
| 285 const CommandLine& command_line); |
| 286 |
277 // Returns the maximum length for QUIC packets, based on any flags in | 287 // Returns the maximum length for QUIC packets, based on any flags in |
278 // |command_line| or the field trial. Returns 0 if there is an error | 288 // |command_line| or the field trial. Returns 0 if there is an error |
279 // parsing any of the options, or if the default value should be used. | 289 // parsing any of the options, or if the default value should be used. |
280 size_t GetQuicMaxPacketLength(const CommandLine& command_line, | 290 size_t GetQuicMaxPacketLength(const CommandLine& command_line, |
281 base::StringPiece quic_trial_group); | 291 base::StringPiece quic_trial_group); |
282 | 292 |
283 // Returns the quic versions specified by any flags in |command_line|. | 293 // Returns the quic versions specified by any flags in |command_line|. |
284 net::QuicVersion GetQuicVersion(const CommandLine& command_line); | 294 net::QuicVersion GetQuicVersion(const CommandLine& command_line); |
285 | 295 |
286 // The NetLog is owned by the browser process, to allow logging from other | 296 // The NetLog is owned by the browser process, to allow logging from other |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 347 |
338 // True if SPDY is disabled by policy. | 348 // True if SPDY is disabled by policy. |
339 bool is_spdy_disabled_by_policy_; | 349 bool is_spdy_disabled_by_policy_; |
340 | 350 |
341 base::WeakPtrFactory<IOThread> weak_factory_; | 351 base::WeakPtrFactory<IOThread> weak_factory_; |
342 | 352 |
343 DISALLOW_COPY_AND_ASSIGN(IOThread); | 353 DISALLOW_COPY_AND_ASSIGN(IOThread); |
344 }; | 354 }; |
345 | 355 |
346 #endif // CHROME_BROWSER_IO_THREAD_H_ | 356 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |