diff options
author | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 03:05:50 +0000 |
---|---|---|
committer | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 03:05:50 +0000 |
commit | e13c14645c5e2777d15c586483d7f29255f260fa (patch) | |
tree | 6eba85cf6b97ce1636a2a1dc4873cd11d6d122e4 /net/url_request/url_request_about_job.cc | |
parent | 433739c4481fee1967d815207863a9a06fd18db2 (diff) | |
download | chromium_src-e13c14645c5e2777d15c586483d7f29255f260fa.zip chromium_src-e13c14645c5e2777d15c586483d7f29255f260fa.tar.gz chromium_src-e13c14645c5e2777d15c586483d7f29255f260fa.tar.bz2 |
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
Diffstat (limited to 'net/url_request/url_request_about_job.cc')
-rw-r--r-- | net/url_request/url_request_about_job.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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. |