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

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

Issue 1288383002: Use common code to set HttpNetworkSession::Param pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to r345348. Created 5 years, 4 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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