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 11419243: Add a InitializeNetworkSessionParams method IOThread to remove duplicate code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove old TODO Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/api/prefs/pref_member.h" 15 #include "chrome/browser/api/prefs/pref_member.h"
16 #include "chrome/browser/net/ssl_config_service_manager.h" 16 #include "chrome/browser/net/ssl_config_service_manager.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/browser_thread_delegate.h" 18 #include "content/public/browser/browser_thread_delegate.h"
19 #include "net/base/network_change_notifier.h" 19 #include "net/base/network_change_notifier.h"
20 #include "net/http/http_network_session.h"
20 21
21 class ChromeNetLog; 22 class ChromeNetLog;
22 class CommandLine; 23 class CommandLine;
23 class PrefProxyConfigTrackerImpl; 24 class PrefProxyConfigTrackerImpl;
24 class PrefService; 25 class PrefService;
25 class SystemURLRequestContextGetter; 26 class SystemURLRequestContextGetter;
26 27
27 namespace chrome_browser_net { 28 namespace chrome_browser_net {
28 class DnsProbeService; 29 class DnsProbeService;
29 class HttpPipeliningCompatibilityClient; 30 class HttpPipeliningCompatibilityClient;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 explicit SystemRequestContextLeakChecker(Globals* globals); 76 explicit SystemRequestContextLeakChecker(Globals* globals);
76 ~SystemRequestContextLeakChecker(); 77 ~SystemRequestContextLeakChecker();
77 78
78 private: 79 private:
79 Globals* const globals_; 80 Globals* const globals_;
80 }; 81 };
81 82
82 Globals(); 83 Globals();
83 ~Globals(); 84 ~Globals();
84 85
86 void InitializeNetworkSessionParams(
87 net::HttpNetworkSession::Params* params) const;
Ryan Sleevi 2012/11/30 00:10:05 Globals is already a public object, so is there a
Ryan Hamilton 2012/11/30 00:17:59 I would only expect the .cc file to call this meth
88
85 // The "system" NetworkDelegate, used for Profile-agnostic network events. 89 // The "system" NetworkDelegate, used for Profile-agnostic network events.
86 scoped_ptr<net::NetworkDelegate> system_network_delegate; 90 scoped_ptr<net::NetworkDelegate> system_network_delegate;
87 scoped_ptr<net::HostResolver> host_resolver; 91 scoped_ptr<net::HostResolver> host_resolver;
88 scoped_ptr<net::CertVerifier> cert_verifier; 92 scoped_ptr<net::CertVerifier> cert_verifier;
89 // This TransportSecurityState doesn't load or save any state. It's only 93 // This TransportSecurityState doesn't load or save any state. It's only
90 // used to enforce pinning for system requests and will only use built-in 94 // used to enforce pinning for system requests and will only use built-in
91 // pins. 95 // pins.
92 scoped_ptr<net::TransportSecurityState> transport_security_state; 96 scoped_ptr<net::TransportSecurityState> transport_security_state;
93 scoped_refptr<net::SSLConfigService> ssl_config_service; 97 scoped_refptr<net::SSLConfigService> ssl_config_service;
94 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; 98 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 265
262 // True if SPDY is disabled by policy. 266 // True if SPDY is disabled by policy.
263 bool is_spdy_disabled_by_policy_; 267 bool is_spdy_disabled_by_policy_;
264 268
265 base::WeakPtrFactory<IOThread> weak_factory_; 269 base::WeakPtrFactory<IOThread> weak_factory_;
266 270
267 DISALLOW_COPY_AND_ASSIGN(IOThread); 271 DISALLOW_COPY_AND_ASSIGN(IOThread);
268 }; 272 };
269 273
270 #endif // CHROME_BROWSER_IO_THREAD_H_ 274 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698