| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // closed and is considered as a lossy connection. Returns 0 if the default | 323 // closed and is considered as a lossy connection. Returns 0 if the default |
| 324 // value should be used. | 324 // value should be used. |
| 325 static float GetQuicPacketLossThreshold( | 325 static float GetQuicPacketLossThreshold( |
| 326 const VariationParameters& quic_trial_params); | 326 const VariationParameters& quic_trial_params); |
| 327 | 327 |
| 328 // Returns the size of the QUIC receive buffer to use, or 0 if the default | 328 // Returns the size of the QUIC receive buffer to use, or 0 if the default |
| 329 // should be used. | 329 // should be used. |
| 330 static int GetQuicSocketReceiveBufferSize( | 330 static int GetQuicSocketReceiveBufferSize( |
| 331 const VariationParameters& quic_trial_params); | 331 const VariationParameters& quic_trial_params); |
| 332 | 332 |
| 333 // Returns true if QUIC should delay TCP connection when QUIC works. |
| 334 static bool ShouldQuicDelayTcpRace( |
| 335 const VariationParameters& quic_trial_params); |
| 336 |
| 333 // Returns true if QUIC should close sessions when any of the client's IP | 337 // Returns true if QUIC should close sessions when any of the client's IP |
| 334 // addresses change. | 338 // addresses change. |
| 335 static bool ShouldQuicCloseSessionsOnIpChange( | 339 static bool ShouldQuicCloseSessionsOnIpChange( |
| 336 const VariationParameters& quic_trial_params); | 340 const VariationParameters& quic_trial_params); |
| 337 | 341 |
| 338 // Returns the idle connection timeout for QUIC connections. Returns 0 if | 342 // Returns the idle connection timeout for QUIC connections. Returns 0 if |
| 339 // there is an error parsing any of the options, or if the default value | 343 // there is an error parsing any of the options, or if the default value |
| 340 // should be used. | 344 // should be used. |
| 341 static int GetQuicIdleConnectionTimeoutSeconds( | 345 static int GetQuicIdleConnectionTimeoutSeconds( |
| 342 const VariationParameters& quic_trial_params); | 346 const VariationParameters& quic_trial_params); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 // Callback for updating data use prefs which needs to be initialized on UI | 560 // Callback for updating data use prefs which needs to be initialized on UI |
| 557 // thread and passed to |ChromeNetworkDelegate|. | 561 // thread and passed to |ChromeNetworkDelegate|. |
| 558 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 562 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
| 559 | 563 |
| 560 base::WeakPtrFactory<IOThread> weak_factory_; | 564 base::WeakPtrFactory<IOThread> weak_factory_; |
| 561 | 565 |
| 562 DISALLOW_COPY_AND_ASSIGN(IOThread); | 566 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 563 }; | 567 }; |
| 564 | 568 |
| 565 #endif // CHROME_BROWSER_IO_THREAD_H_ | 569 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |