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

Side by Side 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 ftp_auth_cache 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_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual ChromeURLRequestContext* InitializeAppRequestContext( 134 virtual ChromeURLRequestContext* InitializeAppRequestContext(
135 ChromeURLRequestContext* main_context, 135 ChromeURLRequestContext* main_context,
136 const std::string& app_id) const OVERRIDE; 136 const std::string& app_id) const OVERRIDE;
137 virtual ChromeURLRequestContext* 137 virtual ChromeURLRequestContext*
138 AcquireMediaRequestContext() const OVERRIDE; 138 AcquireMediaRequestContext() const OVERRIDE;
139 virtual ChromeURLRequestContext* 139 virtual ChromeURLRequestContext*
140 AcquireIsolatedAppRequestContext( 140 AcquireIsolatedAppRequestContext(
141 ChromeURLRequestContext* main_context, 141 ChromeURLRequestContext* main_context,
142 const std::string& app_id) const OVERRIDE; 142 const std::string& app_id) const OVERRIDE;
143 143
144 void CreateFtpProtocolHandler(net::URLRequestJobFactory* job_factory,
145 net::FtpAuthCache* ftp_auth_cache) const;
144 void AddConnectInterceptor(net::URLRequestJobFactory* job_factory) const; 146 void AddConnectInterceptor(net::URLRequestJobFactory* job_factory) const;
145 147
146 // Clears the networking history since |time|. 148 // Clears the networking history since |time|.
147 void ClearNetworkingHistorySinceOnIOThread(base::Time time); 149 void ClearNetworkingHistorySinceOnIOThread(base::Time time);
148 150
149 // Lazy initialization params. 151 // Lazy initialization params.
150 mutable scoped_ptr<LazyParams> lazy_params_; 152 mutable scoped_ptr<LazyParams> lazy_params_;
151 153
152 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 154 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
153 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; 155 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_;
154 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; 156 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_;
155 157
156 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; 158 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
157 159
158 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; 160 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_;
159 161
160 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 162 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
161 mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_; 163 mutable scoped_ptr<net::URLRequestJobFactory> media_request_job_factory_;
162 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; 164 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_;
163 165
164 // Parameters needed for isolated apps. 166 // Parameters needed for isolated apps.
165 FilePath app_path_; 167 FilePath app_path_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 169 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
168 }; 170 };
169 171
170 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 172 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698