| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 static bool ShouldDisableInsecureQuic( | 339 static bool ShouldDisableInsecureQuic( |
| 340 const VariationParameters& quic_trial_params); | 340 const VariationParameters& quic_trial_params); |
| 341 | 341 |
| 342 // Returns true if the selection of the ephemeral port in bind() should be | 342 // Returns true if the selection of the ephemeral port in bind() should be |
| 343 // performed by Chromium, and false if the OS should select the port. The OS | 343 // performed by Chromium, and false if the OS should select the port. The OS |
| 344 // option is used to prevent Windows from posting a security security warning | 344 // option is used to prevent Windows from posting a security security warning |
| 345 // dialog. | 345 // dialog. |
| 346 static bool ShouldEnableQuicPortSelection( | 346 static bool ShouldEnableQuicPortSelection( |
| 347 const base::CommandLine& command_line); | 347 const base::CommandLine& command_line); |
| 348 | 348 |
| 349 // Returns true if QUIC packet pacing should be negotiated during the | |
| 350 // QUIC handshake. | |
| 351 static bool ShouldEnableQuicPacing( | |
| 352 const base::CommandLine& command_line, | |
| 353 const VariationParameters& quic_trial_params); | |
| 354 | |
| 355 // Returns true if QUIC should always require handshake confirmation during | 349 // Returns true if QUIC should always require handshake confirmation during |
| 356 // the QUIC handshake. | 350 // the QUIC handshake. |
| 357 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( | 351 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( |
| 358 const VariationParameters& quic_trial_params); | 352 const VariationParameters& quic_trial_params); |
| 359 | 353 |
| 360 // Returns true if QUIC should disable connection pooling. | 354 // Returns true if QUIC should disable connection pooling. |
| 361 static bool ShouldQuicDisableConnectionPooling( | 355 static bool ShouldQuicDisableConnectionPooling( |
| 362 const VariationParameters& quic_trial_params); | 356 const VariationParameters& quic_trial_params); |
| 363 | 357 |
| 364 // Returns the ratio of time to load QUIC sever information from disk cache to | 358 // Returns the ratio of time to load QUIC sever information from disk cache to |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 bool is_quic_allowed_by_policy_; | 478 bool is_quic_allowed_by_policy_; |
| 485 | 479 |
| 486 const base::TimeTicks creation_time_; | 480 const base::TimeTicks creation_time_; |
| 487 | 481 |
| 488 base::WeakPtrFactory<IOThread> weak_factory_; | 482 base::WeakPtrFactory<IOThread> weak_factory_; |
| 489 | 483 |
| 490 DISALLOW_COPY_AND_ASSIGN(IOThread); | 484 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 491 }; | 485 }; |
| 492 | 486 |
| 493 #endif // CHROME_BROWSER_IO_THREAD_H_ | 487 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |