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

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

Issue 1271793003: Create alternative service field trial group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #15. Created 5 years, 3 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 <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
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
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_
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