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 <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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |