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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_pacing; | 168 Optional<bool> enable_quic_pacing; |
| 169 Optional<bool> enable_quic_persist_server_info; |
169 Optional<bool> enable_quic_port_selection; | 170 Optional<bool> enable_quic_port_selection; |
170 Optional<size_t> quic_max_packet_length; | 171 Optional<size_t> quic_max_packet_length; |
171 Optional<net::QuicVersionVector> quic_supported_versions; | 172 Optional<net::QuicVersionVector> quic_supported_versions; |
172 Optional<net::HostPortPair> origin_to_force_quic_on; | 173 Optional<net::HostPortPair> origin_to_force_quic_on; |
173 bool enable_user_alternate_protocol_ports; | 174 bool enable_user_alternate_protocol_ports; |
174 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 175 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
175 // main frame load fails with a DNS error in order to provide more useful | 176 // main frame load fails with a DNS error in order to provide more useful |
176 // information to the renderer so it can show a more specific error page. | 177 // information to the renderer so it can show a more specific error page. |
177 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 178 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
178 scoped_ptr<net::NetworkTimeNotifier> network_time_notifier; | 179 scoped_ptr<net::NetworkTimeNotifier> network_time_notifier; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // performed by Chromium, and false if the OS should select the port. The OS | 281 // performed by Chromium, and false if the OS should select the port. The OS |
281 // option is used to prevent Windows from posting a security security warning | 282 // option is used to prevent Windows from posting a security security warning |
282 // dialog. | 283 // dialog. |
283 bool ShouldEnableQuicPortSelection(const CommandLine& command_line); | 284 bool ShouldEnableQuicPortSelection(const CommandLine& command_line); |
284 | 285 |
285 // Returns true if QUIC packet pacing should be negotiated during the | 286 // Returns true if QUIC packet pacing should be negotiated during the |
286 // QUIC handshake. | 287 // QUIC handshake. |
287 bool ShouldEnableQuicPacing(const CommandLine& command_line, | 288 bool ShouldEnableQuicPacing(const CommandLine& command_line, |
288 base::StringPiece quic_trial_group); | 289 base::StringPiece quic_trial_group); |
289 | 290 |
| 291 // Returns true if Chromium should persist QUIC server config information to |
| 292 // disk cache. |
| 293 bool ShouldEnableQuicPersistServerInfo(const CommandLine& command_line); |
| 294 |
290 // Returns the maximum length for QUIC packets, based on any flags in | 295 // Returns the maximum length for QUIC packets, based on any flags in |
291 // |command_line| or the field trial. Returns 0 if there is an error | 296 // |command_line| or the field trial. Returns 0 if there is an error |
292 // parsing any of the options, or if the default value should be used. | 297 // parsing any of the options, or if the default value should be used. |
293 size_t GetQuicMaxPacketLength(const CommandLine& command_line, | 298 size_t GetQuicMaxPacketLength(const CommandLine& command_line, |
294 base::StringPiece quic_trial_group); | 299 base::StringPiece quic_trial_group); |
295 | 300 |
296 // Returns the quic versions specified by any flags in |command_line|. | 301 // Returns the quic versions specified by any flags in |command_line|. |
297 net::QuicVersion GetQuicVersion(const CommandLine& command_line); | 302 net::QuicVersion GetQuicVersion(const CommandLine& command_line); |
298 | 303 |
299 // The NetLog is owned by the browser process, to allow logging from other | 304 // 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... |
350 | 355 |
351 // True if SPDY is disabled by policy. | 356 // True if SPDY is disabled by policy. |
352 bool is_spdy_disabled_by_policy_; | 357 bool is_spdy_disabled_by_policy_; |
353 | 358 |
354 base::WeakPtrFactory<IOThread> weak_factory_; | 359 base::WeakPtrFactory<IOThread> weak_factory_; |
355 | 360 |
356 DISALLOW_COPY_AND_ASSIGN(IOThread); | 361 DISALLOW_COPY_AND_ASSIGN(IOThread); |
357 }; | 362 }; |
358 | 363 |
359 #endif // CHROME_BROWSER_IO_THREAD_H_ | 364 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |