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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 // Returns true if QUIC shouldn't load QUIC server information from the disk | 373 // Returns true if QUIC shouldn't load QUIC server information from the disk |
374 // cache. | 374 // cache. |
375 static bool ShouldQuicDisableDiskCache( | 375 static bool ShouldQuicDisableDiskCache( |
376 const VariationParameters& quic_trial_params); | 376 const VariationParameters& quic_trial_params); |
377 | 377 |
378 // Returns true if QUIC should prefer AES-GCN even without hardware support. | 378 // Returns true if QUIC should prefer AES-GCN even without hardware support. |
379 static bool ShouldQuicPreferAes(const VariationParameters& quic_trial_params); | 379 static bool ShouldQuicPreferAes(const VariationParameters& quic_trial_params); |
380 | 380 |
381 // Returns true if QUIC should enable alternative services. | 381 // Returns true if QUIC should enable alternative services. |
382 static bool ShouldQuicEnableAlternativeServices( | 382 static bool ShouldQuicEnableAlternativeServices( |
| 383 const base::CommandLine& command_line, |
383 const VariationParameters& quic_trial_params); | 384 const VariationParameters& quic_trial_params); |
384 | 385 |
385 // Returns the maximum number of QUIC connections with high packet loss in a | 386 // Returns the maximum number of QUIC connections with high packet loss in a |
386 // row after which QUIC should be disabled. Returns 0 if the default value | 387 // row after which QUIC should be disabled. Returns 0 if the default value |
387 // should be used. | 388 // should be used. |
388 static int GetQuicMaxNumberOfLossyConnections( | 389 static int GetQuicMaxNumberOfLossyConnections( |
389 const VariationParameters& quic_trial_params); | 390 const VariationParameters& quic_trial_params); |
390 | 391 |
391 // Returns the packet loss rate in fraction after which a QUIC connection is | 392 // Returns the packet loss rate in fraction after which a QUIC connection is |
392 // closed and is considered as a lossy connection. Returns 0 if the default | 393 // closed and is considered as a lossy connection. Returns 0 if the default |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 bool is_quic_allowed_by_policy_; | 499 bool is_quic_allowed_by_policy_; |
499 | 500 |
500 const base::TimeTicks creation_time_; | 501 const base::TimeTicks creation_time_; |
501 | 502 |
502 base::WeakPtrFactory<IOThread> weak_factory_; | 503 base::WeakPtrFactory<IOThread> weak_factory_; |
503 | 504 |
504 DISALLOW_COPY_AND_ASSIGN(IOThread); | 505 DISALLOW_COPY_AND_ASSIGN(IOThread); |
505 }; | 506 }; |
506 | 507 |
507 #endif // CHROME_BROWSER_IO_THREAD_H_ | 508 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |