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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 const VariationParameters& quic_trial_params); | 371 const VariationParameters& quic_trial_params); |
372 | 372 |
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. |
| 382 static bool ShouldQuicEnableAlternativeServices( |
| 383 const VariationParameters& quic_trial_params); |
| 384 |
381 // Returns the maximum number of QUIC connections with high packet loss in a | 385 // Returns the maximum number of QUIC connections with high packet loss in a |
382 // row after which QUIC should be disabled. Returns 0 if the default value | 386 // row after which QUIC should be disabled. Returns 0 if the default value |
383 // should be used. | 387 // should be used. |
384 static int GetQuicMaxNumberOfLossyConnections( | 388 static int GetQuicMaxNumberOfLossyConnections( |
385 const VariationParameters& quic_trial_params); | 389 const VariationParameters& quic_trial_params); |
386 | 390 |
387 // Returns the packet loss rate in fraction after which a QUIC connection is | 391 // Returns the packet loss rate in fraction after which a QUIC connection is |
388 // closed and is considered as a lossy connection. Returns 0 if the default | 392 // closed and is considered as a lossy connection. Returns 0 if the default |
389 // value should be used. | 393 // value should be used. |
390 static float GetQuicPacketLossThreshold( | 394 static float GetQuicPacketLossThreshold( |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 bool is_quic_allowed_by_policy_; | 498 bool is_quic_allowed_by_policy_; |
495 | 499 |
496 const base::TimeTicks creation_time_; | 500 const base::TimeTicks creation_time_; |
497 | 501 |
498 base::WeakPtrFactory<IOThread> weak_factory_; | 502 base::WeakPtrFactory<IOThread> weak_factory_; |
499 | 503 |
500 DISALLOW_COPY_AND_ASSIGN(IOThread); | 504 DISALLOW_COPY_AND_ASSIGN(IOThread); |
501 }; | 505 }; |
502 | 506 |
503 #endif // CHROME_BROWSER_IO_THREAD_H_ | 507 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |