Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/browser/io_thread.h

Issue 1916783003: QUIC - enable "delay_tcp_race" parameter by default. This feature showed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted unneeded hanging get calls from unittests Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698