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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 static net::QuicTagVector GetQuicConnectionOptions( | 417 static net::QuicTagVector GetQuicConnectionOptions( |
418 const base::CommandLine& command_line, | 418 const base::CommandLine& command_line, |
419 const VariationParameters& quic_trial_params); | 419 const VariationParameters& quic_trial_params); |
420 | 420 |
421 // Returns the alternative service probability threshold specified by | 421 // Returns the alternative service probability threshold specified by |
422 // any flags in |command_line| or |quic_trial_params|. | 422 // any flags in |command_line| or |quic_trial_params|. |
423 static double GetAlternativeProtocolProbabilityThreshold( | 423 static double GetAlternativeProtocolProbabilityThreshold( |
424 const base::CommandLine& command_line, | 424 const base::CommandLine& command_line, |
425 const VariationParameters& quic_trial_params); | 425 const VariationParameters& quic_trial_params); |
426 | 426 |
| 427 static net::URLRequestContext* ConstructSystemRequestContext( |
| 428 IOThread::Globals* globals, |
| 429 net::NetLog* net_log); |
| 430 |
| 431 // TODO(willchan): Remove proxy script fetcher context since it's not |
| 432 // necessary now that I got rid of refcounting URLRequestContexts. |
| 433 // See IOThread::Globals for details. |
| 434 static net::URLRequestContext* ConstructProxyScriptFetcherContext( |
| 435 IOThread::Globals* globals, |
| 436 net::NetLog* net_log); |
| 437 |
427 // The NetLog is owned by the browser process, to allow logging from other | 438 // The NetLog is owned by the browser process, to allow logging from other |
428 // threads during shutdown, but is used most frequently on the IOThread. | 439 // threads during shutdown, but is used most frequently on the IOThread. |
429 ChromeNetLog* net_log_; | 440 ChromeNetLog* net_log_; |
430 | 441 |
431 #if defined(ENABLE_EXTENSIONS) | 442 #if defined(ENABLE_EXTENSIONS) |
432 // The extensions::EventRouterForwarder allows for sending events to | 443 // The extensions::EventRouterForwarder allows for sending events to |
433 // extensions from the IOThread. | 444 // extensions from the IOThread. |
434 extensions::EventRouterForwarder* extension_event_router_forwarder_; | 445 extensions::EventRouterForwarder* extension_event_router_forwarder_; |
435 #endif | 446 #endif |
436 | 447 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 bool is_quic_allowed_by_policy_; | 494 bool is_quic_allowed_by_policy_; |
484 | 495 |
485 const base::TimeTicks creation_time_; | 496 const base::TimeTicks creation_time_; |
486 | 497 |
487 base::WeakPtrFactory<IOThread> weak_factory_; | 498 base::WeakPtrFactory<IOThread> weak_factory_; |
488 | 499 |
489 DISALLOW_COPY_AND_ASSIGN(IOThread); | 500 DISALLOW_COPY_AND_ASSIGN(IOThread); |
490 }; | 501 }; |
491 | 502 |
492 #endif // CHROME_BROWSER_IO_THREAD_H_ | 503 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |