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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 #else | 324 #else |
325 return NULL; | 325 return NULL; |
326 #endif | 326 #endif |
327 } | 327 } |
328 // Configures QUIC options in |globals| based on the flags in |command_line| | 328 // Configures QUIC options in |globals| based on the flags in |command_line| |
329 // as well as the QUIC field trial group and parameters. | 329 // as well as the QUIC field trial group and parameters. |
330 static void ConfigureQuicGlobals( | 330 static void ConfigureQuicGlobals( |
331 const base::CommandLine& command_line, | 331 const base::CommandLine& command_line, |
332 base::StringPiece quic_trial_group, | 332 base::StringPiece quic_trial_group, |
333 const VariationParameters& quic_trial_params, | 333 const VariationParameters& quic_trial_params, |
334 bool quic_disabled_by_policy, | |
334 Globals* globals); | 335 Globals* globals); |
335 | 336 |
336 // Returns true if QUIC should be enabled, either as a result | 337 // Returns true if QUIC should be enabled, either as a result |
337 // of a field trial or a command line flag. | 338 // of a field trial or a command line flag. |
338 static bool ShouldEnableQuic( | 339 static bool ShouldEnableQuic( |
339 const base::CommandLine& command_line, | 340 const base::CommandLine& command_line, |
340 base::StringPiece quic_trial_group); | 341 base::StringPiece quic_trial_group, |
342 bool quic_disabled_by_policy); | |
341 | 343 |
342 // Returns true if QUIC should be enabled for proxies, either as a result | 344 // Returns true if QUIC should be enabled for proxies, either as a result |
343 // of a field trial or a command line flag. | 345 // of a field trial or a command line flag. |
344 static bool ShouldEnableQuicForProxies( | 346 static bool ShouldEnableQuicForProxies( |
345 const base::CommandLine& command_line, | 347 const base::CommandLine& command_line, |
346 base::StringPiece quic_trial_group); | 348 base::StringPiece quic_trial_group, |
349 bool quic_disabled_by_policy); | |
347 | 350 |
348 // Returns true if the selection of the ephemeral port in bind() should be | 351 // Returns true if the selection of the ephemeral port in bind() should be |
349 // performed by Chromium, and false if the OS should select the port. The OS | 352 // performed by Chromium, and false if the OS should select the port. The OS |
350 // option is used to prevent Windows from posting a security security warning | 353 // option is used to prevent Windows from posting a security security warning |
351 // dialog. | 354 // dialog. |
352 static bool ShouldEnableQuicPortSelection( | 355 static bool ShouldEnableQuicPortSelection( |
353 const base::CommandLine& command_line); | 356 const base::CommandLine& command_line); |
354 | 357 |
355 // Returns true if QUIC packet pacing should be negotiated during the | 358 // Returns true if QUIC packet pacing should be negotiated during the |
356 // QUIC handshake. | 359 // QUIC handshake. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
467 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; | 470 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; |
468 | 471 |
469 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 472 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
470 | 473 |
471 scoped_refptr<net::URLRequestContextGetter> | 474 scoped_refptr<net::URLRequestContextGetter> |
472 system_url_request_context_getter_; | 475 system_url_request_context_getter_; |
473 | 476 |
474 // True if SPDY is disabled by policy. | 477 // True if SPDY is disabled by policy. |
475 bool is_spdy_disabled_by_policy_; | 478 bool is_spdy_disabled_by_policy_; |
476 | 479 |
480 // True if QUIC is disabled by policy. | |
481 bool is_quic_allowed_by_policy_; | |
Andrew T Wilson (Slow)
2015/03/13 14:00:51
name of this variable doesn't match the comment. c
peletskyi
2015/03/18 15:42:30
I've fixed comments. I think I would be better if
| |
482 | |
477 const base::TimeTicks creation_time_; | 483 const base::TimeTicks creation_time_; |
478 | 484 |
479 base::WeakPtrFactory<IOThread> weak_factory_; | 485 base::WeakPtrFactory<IOThread> weak_factory_; |
480 | 486 |
481 DISALLOW_COPY_AND_ASSIGN(IOThread); | 487 DISALLOW_COPY_AND_ASSIGN(IOThread); |
482 }; | 488 }; |
483 | 489 |
484 #endif // CHROME_BROWSER_IO_THREAD_H_ | 490 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |