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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // closed and is considered as a lossy connection. Returns 0 if the default | 331 // closed and is considered as a lossy connection. Returns 0 if the default |
332 // value should be used. | 332 // value should be used. |
333 static float GetQuicPacketLossThreshold( | 333 static float GetQuicPacketLossThreshold( |
334 const VariationParameters& quic_trial_params); | 334 const VariationParameters& quic_trial_params); |
335 | 335 |
336 // Returns the size of the QUIC receive buffer to use, or 0 if the default | 336 // Returns the size of the QUIC receive buffer to use, or 0 if the default |
337 // should be used. | 337 // should be used. |
338 static int GetQuicSocketReceiveBufferSize( | 338 static int GetQuicSocketReceiveBufferSize( |
339 const VariationParameters& quic_trial_params); | 339 const VariationParameters& quic_trial_params); |
340 | 340 |
341 // Returns true if QUIC should delay TCP connection when QUIC works. | |
342 static bool ShouldQuicDelayTcpRace( | |
343 const VariationParameters& quic_trial_params); | |
344 | |
345 // Returns true if QUIC should close sessions when any of the client's IP | 341 // Returns true if QUIC should close sessions when any of the client's IP |
346 // addresses change. | 342 // addresses change. |
347 static bool ShouldQuicCloseSessionsOnIpChange( | 343 static bool ShouldQuicCloseSessionsOnIpChange( |
348 const VariationParameters& quic_trial_params); | 344 const VariationParameters& quic_trial_params); |
349 | 345 |
350 // Returns the idle connection timeout for QUIC connections. Returns 0 if | 346 // Returns the idle connection timeout for QUIC connections. Returns 0 if |
351 // there is an error parsing any of the options, or if the default value | 347 // there is an error parsing any of the options, or if the default value |
352 // should be used. | 348 // should be used. |
353 static int GetQuicIdleConnectionTimeoutSeconds( | 349 static int GetQuicIdleConnectionTimeoutSeconds( |
354 const VariationParameters& quic_trial_params); | 350 const VariationParameters& quic_trial_params); |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 // Callback for updating data use prefs which needs to be initialized on UI | 569 // Callback for updating data use prefs which needs to be initialized on UI |
574 // thread and passed to |ChromeNetworkDelegate|. | 570 // thread and passed to |ChromeNetworkDelegate|. |
575 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 571 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
576 | 572 |
577 base::WeakPtrFactory<IOThread> weak_factory_; | 573 base::WeakPtrFactory<IOThread> weak_factory_; |
578 | 574 |
579 DISALLOW_COPY_AND_ASSIGN(IOThread); | 575 DISALLOW_COPY_AND_ASSIGN(IOThread); |
580 }; | 576 }; |
581 | 577 |
582 #endif // CHROME_BROWSER_IO_THREAD_H_ | 578 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |