From e13c14645c5e2777d15c586483d7f29255f260fa Mon Sep 17 00:00:00 2001 From: "kbr@chromium.org" Date: Tue, 19 Mar 2013 03:05:50 +0000 Subject: Revert 188912 "Removed static factories for data, ftp, file, and..." Broke layout tests userscripts/user-script-plugin-document.html and plugins/plugin-document-back-forward.html on all platforms. > Removed static factories for data, ftp, file, and about jobs. > Instead add corresponding ProtocolHandlers as needed. > Remove URLRequestContext members used by these static > factories. Bake FtpAuthCache into FtpProtocolHandler as it > was already unique per FtpProtocolHandler. > This is a revived version of http://crrev.com/10836206 > > BUG=142945 > > > Review URL: https://chromiumcodereview.appspot.com/11931024 TBR=pauljensen@chromium.org Review URL: https://codereview.chromium.org/12605011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188927 0039d316-1c4b-4281-b951-d872f2087c98 --- net/url_request/url_request_about_job.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'net/url_request/url_request_about_job.cc') diff --git a/net/url_request/url_request_about_job.cc b/net/url_request/url_request_about_job.cc index 04ad6d8..242a735 100644 --- a/net/url_request/url_request_about_job.cc +++ b/net/url_request/url_request_about_job.cc @@ -20,6 +20,13 @@ URLRequestAboutJob::URLRequestAboutJob(URLRequest* request, ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { } +// static +URLRequestJob* URLRequestAboutJob::Factory(URLRequest* request, + NetworkDelegate* network_delegate, + const std::string& scheme) { + return new URLRequestAboutJob(request, network_delegate); +} + void URLRequestAboutJob::Start() { // Start reading asynchronously so that all error reporting and data // callbacks happen as they would for network requests. -- cgit v1.1