Chromium Code Reviews

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 2251643003: Remove the BeginSaveFile and BeginDownload methods from ResourceDispatcherHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary function declaration Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/browser/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index 05d22a8ee73cfe46f093aa7503646ed3a2bb6f98..c2d73939a4031eca04d581dbdd06c93c4eafbcc4 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -129,6 +129,15 @@ DownloadResourceHandler::~DownloadResourceHandler() {
}
}
+// static
+std::unique_ptr<ResourceHandler> DownloadResourceHandler::Create(
+ net::URLRequest* request) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ std::unique_ptr<ResourceHandler> handler(
+ new DownloadResourceHandler(request));
+ return handler;
+}
+
bool DownloadResourceHandler::OnRequestRedirected(
const net::RedirectInfo& redirect_info,
ResourceResponse* response,

Powered by Google App Engine