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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 10704021: Switched from having one URLRequestJobFactory per profile to having one per context. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed header file Created 8 years, 5 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
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_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void* profile; 177 void* profile;
178 }; 178 };
179 179
180 explicit ProfileIOData(bool is_incognito); 180 explicit ProfileIOData(bool is_incognito);
181 181
182 static std::string GetSSLSessionCacheShard(); 182 static std::string GetSSLSessionCacheShard();
183 183
184 void InitializeOnUIThread(Profile* profile); 184 void InitializeOnUIThread(Profile* profile);
185 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; 185 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const;
186 186
187 void SetUpJobFactoryDefaults(net::URLRequestJobFactory* job_factory) const;
188
187 // Lazy initializes the ProfileIOData object the first time a request context 189 // Lazy initializes the ProfileIOData object the first time a request context
188 // is requested. The lazy logic is implemented here. The actual initialization 190 // is requested. The lazy logic is implemented here. The actual initialization
189 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper 191 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper
190 // functions have been provided to assist in common operations. 192 // functions have been provided to assist in common operations.
191 void LazyInitialize() const; 193 void LazyInitialize() const;
192 194
193 // Called when the profile is destroyed. 195 // Called when the profile is destroyed.
194 void ShutdownOnUIThread(); 196 void ShutdownOnUIThread();
195 197
196 BooleanPrefMember* enable_referrers() const { 198 BooleanPrefMember* enable_referrers() const {
(...skipping 16 matching lines...) Expand all
213 } 215 }
214 216
215 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const { 217 net::FraudulentCertificateReporter* fraudulent_certificate_reporter() const {
216 return fraudulent_certificate_reporter_.get(); 218 return fraudulent_certificate_reporter_.get();
217 } 219 }
218 220
219 net::ProxyService* proxy_service() const { 221 net::ProxyService* proxy_service() const {
220 return proxy_service_.get(); 222 return proxy_service_.get();
221 } 223 }
222 224
223 net::URLRequestJobFactory* job_factory() const {
224 return job_factory_.get();
225 }
226
227 void set_http_server_properties_manager( 225 void set_http_server_properties_manager(
228 chrome_browser_net::HttpServerPropertiesManager* manager) const; 226 chrome_browser_net::HttpServerPropertiesManager* manager) const;
229 227
230 ChromeURLRequestContext* main_request_context() const { 228 ChromeURLRequestContext* main_request_context() const {
231 return main_request_context_.get(); 229 return main_request_context_.get();
232 } 230 }
233 231
234 // Destroys the ResourceContext first, to cancel any URLRequests that are 232 // Destroys the ResourceContext first, to cancel any URLRequests that are
235 // using it still, before we destroy the member variables that those 233 // using it still, before we destroy the member variables that those
236 // URLRequests may be accessing. 234 // URLRequests may be accessing.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 321
324 // Pointed to by URLRequestContext. 322 // Pointed to by URLRequestContext.
325 mutable scoped_ptr<ChromeURLDataManagerBackend> 323 mutable scoped_ptr<ChromeURLDataManagerBackend>
326 chrome_url_data_manager_backend_; 324 chrome_url_data_manager_backend_;
327 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; 325 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_;
328 mutable scoped_ptr<net::NetworkDelegate> network_delegate_; 326 mutable scoped_ptr<net::NetworkDelegate> network_delegate_;
329 mutable scoped_ptr<net::FraudulentCertificateReporter> 327 mutable scoped_ptr<net::FraudulentCertificateReporter>
330 fraudulent_certificate_reporter_; 328 fraudulent_certificate_reporter_;
331 mutable scoped_ptr<net::ProxyService> proxy_service_; 329 mutable scoped_ptr<net::ProxyService> proxy_service_;
332 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; 330 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_;
333 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_;
334 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager> 331 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager>
335 http_server_properties_manager_; 332 http_server_properties_manager_;
336 333
337 #if defined(ENABLE_NOTIFICATIONS) 334 #if defined(ENABLE_NOTIFICATIONS)
338 mutable DesktopNotificationService* notification_service_; 335 mutable DesktopNotificationService* notification_service_;
339 #endif 336 #endif
340 337
341 mutable scoped_ptr<TransportSecurityPersister> 338 mutable scoped_ptr<TransportSecurityPersister>
342 transport_security_persister_; 339 transport_security_persister_;
343 340
(...skipping 14 matching lines...) Expand all
358 355
359 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 356 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
360 bool initialized_on_UI_thread_; 357 bool initialized_on_UI_thread_;
361 358
362 bool is_incognito_; 359 bool is_incognito_;
363 360
364 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 361 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
365 }; 362 };
366 363
367 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 364 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698