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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 static net::URLRequestContext* ConstructSystemRequestContext( | 298 static net::URLRequestContext* ConstructSystemRequestContext( |
299 IOThread::Globals* globals, | 299 IOThread::Globals* globals, |
300 const net::HttpNetworkSession::Params& params, | 300 const net::HttpNetworkSession::Params& params, |
301 net::NetLog* net_log); | 301 net::NetLog* net_log); |
302 | 302 |
303 // Parse command line flags and use components/network_session_configurator to | 303 // Parse command line flags and use components/network_session_configurator to |
304 // configure |params|. | 304 // configure |params|. |
305 static void ConfigureParamsFromFieldTrialsAndCommandLine( | 305 static void ConfigureParamsFromFieldTrialsAndCommandLine( |
306 const base::CommandLine& command_line, | 306 const base::CommandLine& command_line, |
307 bool is_quic_allowed_by_policy, | 307 bool is_quic_allowed_by_policy, |
| 308 bool http_09_on_non_default_ports_enabled, |
308 net::HttpNetworkSession::Params* params); | 309 net::HttpNetworkSession::Params* params); |
309 | 310 |
310 // TODO(willchan): Remove proxy script fetcher context since it's not | 311 // TODO(willchan): Remove proxy script fetcher context since it's not |
311 // necessary now that I got rid of refcounting URLRequestContexts. | 312 // necessary now that I got rid of refcounting URLRequestContexts. |
312 // See IOThread::Globals for details. | 313 // See IOThread::Globals for details. |
313 static net::URLRequestContext* ConstructProxyScriptFetcherContext( | 314 static net::URLRequestContext* ConstructProxyScriptFetcherContext( |
314 IOThread::Globals* globals, | 315 IOThread::Globals* globals, |
315 const net::HttpNetworkSession::Params& params, | 316 const net::HttpNetworkSession::Params& params, |
316 net::NetLog* net_log); | 317 net::NetLog* net_log); |
317 | 318 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 std::unique_ptr<net::ProxyConfigService> system_proxy_config_service_; | 380 std::unique_ptr<net::ProxyConfigService> system_proxy_config_service_; |
380 | 381 |
381 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 382 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
382 | 383 |
383 scoped_refptr<net::URLRequestContextGetter> | 384 scoped_refptr<net::URLRequestContextGetter> |
384 system_url_request_context_getter_; | 385 system_url_request_context_getter_; |
385 | 386 |
386 // True if QUIC is allowed by policy. | 387 // True if QUIC is allowed by policy. |
387 bool is_quic_allowed_by_policy_; | 388 bool is_quic_allowed_by_policy_; |
388 | 389 |
| 390 // True if HTTP/0.9 is allowed on non-default ports by policy. |
| 391 bool http_09_on_non_default_ports_enabled_; |
| 392 |
389 const base::TimeTicks creation_time_; | 393 const base::TimeTicks creation_time_; |
390 | 394 |
391 // Callback for updating data use prefs which needs to be initialized on UI | 395 // Callback for updating data use prefs which needs to be initialized on UI |
392 // thread and passed to |ChromeNetworkDelegate|. | 396 // thread and passed to |ChromeNetworkDelegate|. |
393 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 397 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
394 | 398 |
395 base::WeakPtrFactory<IOThread> weak_factory_; | 399 base::WeakPtrFactory<IOThread> weak_factory_; |
396 | 400 |
397 DISALLOW_COPY_AND_ASSIGN(IOThread); | 401 DISALLOW_COPY_AND_ASSIGN(IOThread); |
398 }; | 402 }; |
399 | 403 |
400 #endif // CHROME_BROWSER_IO_THREAD_H_ | 404 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |