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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.h

Issue 10537056: Replaced static URLRequestFtpJob factory with non-static protocol handler for FTP jobs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed job factories in off_the_record Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl_io_data.h
diff --git a/chrome/browser/profiles/profile_impl_io_data.h b/chrome/browser/profiles/profile_impl_io_data.h
index d2ccbecf64e39534def66962586ab927743f8c3c..70d2111864587ba839bb5e8560d75ff0e16f2c42 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -141,6 +141,9 @@ class ProfileImplIOData : public ProfileIOData {
ChromeURLRequestContext* main_context,
const std::string& app_id) const OVERRIDE;
+ void CreateFtpProtocolHandler(net::URLRequestJobFactory* job_factory) const;
+ void AddConnectInterceptor(net::URLRequestJobFactory* job_factory) const;
+
// Clears the networking history since |time|.
void ClearNetworkingHistorySinceOnIOThread(base::Time time);
@@ -150,11 +153,16 @@ class ProfileImplIOData : public ProfileIOData {
mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_;
mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_;
+ mutable scoped_ptr<net::FtpAuthCache> ftp_auth_cache_;
mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
mutable scoped_ptr<ChromeURLRequestContext> media_request_context_;
+ mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
+ mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_;
+ mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_;
+
// Parameters needed for isolated apps.
FilePath app_path_;

Powered by Google App Engine
This is Rietveld 408576698