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

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

Issue 2428143002: Clean up FtpTransactionFacory ownership. (Closed)
Patch Set: Oops Created 4 years, 2 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 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class ExtensionThrottleManager; 70 class ExtensionThrottleManager;
71 class InfoMap; 71 class InfoMap;
72 } 72 }
73 73
74 namespace net { 74 namespace net {
75 class CertVerifier; 75 class CertVerifier;
76 class ChannelIDService; 76 class ChannelIDService;
77 class ClientCertStore; 77 class ClientCertStore;
78 class CookieStore; 78 class CookieStore;
79 class CTVerifier; 79 class CTVerifier;
80 class FtpTransactionFactory;
81 class HttpServerProperties; 80 class HttpServerProperties;
82 class HttpTransactionFactory; 81 class HttpTransactionFactory;
83 class ProxyConfigService; 82 class ProxyConfigService;
84 class ProxyService; 83 class ProxyService;
85 class ReportSender; 84 class ReportSender;
86 class SSLConfigService; 85 class SSLConfigService;
87 class TransportSecurityPersister; 86 class TransportSecurityPersister;
88 class TransportSecurityState; 87 class TransportSecurityState;
89 class URLRequestContextStorage; 88 class URLRequestContextStorage;
90 class URLRequestJobFactoryImpl; 89 class URLRequestJobFactoryImpl;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // ensure it's not accidently used on the IO thread. Before using it on the 354 // ensure it's not accidently used on the IO thread. Before using it on the
356 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. 355 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive.
357 void* profile; 356 void* profile;
358 }; 357 };
359 358
360 explicit ProfileIOData(Profile::ProfileType profile_type); 359 explicit ProfileIOData(Profile::ProfileType profile_type);
361 360
362 void InitializeOnUIThread(Profile* profile); 361 void InitializeOnUIThread(Profile* profile);
363 void ApplyProfileParamsToContext(net::URLRequestContext* context) const; 362 void ApplyProfileParamsToContext(net::URLRequestContext* context) const;
364 363
365 std::unique_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( 364 std::unique_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults(
eroman 2016/10/19 16:29:51 Can you add comments for this? In particular, woul
mmenke 2016/10/19 17:09:35 Good idea, done. Also added a little more general
366 std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory, 365 std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory,
367 content::URLRequestInterceptorScopedVector request_interceptors, 366 content::URLRequestInterceptorScopedVector request_interceptors,
368 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> 367 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
369 protocol_handler_interceptor, 368 protocol_handler_interceptor,
370 net::NetworkDelegate* network_delegate, 369 net::NetworkDelegate* network_delegate,
371 net::FtpTransactionFactory* ftp_transaction_factory) const; 370 net::HostResolver* host_resolver) const;
372 371
373 // Called when the Profile is destroyed. |context_getters| must include all 372 // Called when the Profile is destroyed. |context_getters| must include all
374 // URLRequestContextGetters that refer to the ProfileIOData's 373 // URLRequestContextGetters that refer to the ProfileIOData's
375 // URLRequestContexts. Triggers destruction of the ProfileIOData and shuts 374 // URLRequestContexts. Triggers destruction of the ProfileIOData and shuts
376 // down |context_getters| safely on the IO thread. 375 // down |context_getters| safely on the IO thread.
377 // TODO(mmenke): Passing all those URLRequestContextGetters around like this 376 // TODO(mmenke): Passing all those URLRequestContextGetters around like this
378 // is really silly. Can we do something cleaner? 377 // is really silly. Can we do something cleaner?
379 void ShutdownOnUIThread( 378 void ShutdownOnUIThread(
380 std::unique_ptr<ChromeURLRequestContextGetterVector> context_getters); 379 std::unique_ptr<ChromeURLRequestContextGetterVector> context_getters);
381 380
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> 623 mutable std::unique_ptr<certificate_transparency::TreeStateTracker>
625 ct_tree_tracker_; 624 ct_tree_tracker_;
626 mutable base::Closure ct_tree_tracker_unregistration_; 625 mutable base::Closure ct_tree_tracker_unregistration_;
627 626
628 const Profile::ProfileType profile_type_; 627 const Profile::ProfileType profile_type_;
629 628
630 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 629 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
631 }; 630 };
632 631
633 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 632 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698