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

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

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