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

Unified Diff: webkit/fileapi/file_system_url_request_job_factory.cc

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 4 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: webkit/fileapi/file_system_url_request_job_factory.cc
diff --git a/webkit/fileapi/file_system_url_request_job_factory.cc b/webkit/fileapi/file_system_url_request_job_factory.cc
index ae6f39ca39c55492869c59f9bbd3f0d617190146..f0bf0d8e1d56c0914a13e4ef94829940eadda33b 100644
--- a/webkit/fileapi/file_system_url_request_job_factory.cc
+++ b/webkit/fileapi/file_system_url_request_job_factory.cc
@@ -23,7 +23,8 @@ class FileSystemProtocolHandler
virtual ~FileSystemProtocolHandler();
virtual net::URLRequestJob* MaybeCreateJob(
- net::URLRequest* request) const OVERRIDE;
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) const OVERRIDE;
private:
// No scoped_refptr because |file_system_context_| is owned by the
@@ -42,16 +43,18 @@ FileSystemProtocolHandler::FileSystemProtocolHandler(
FileSystemProtocolHandler::~FileSystemProtocolHandler() {}
net::URLRequestJob* FileSystemProtocolHandler::MaybeCreateJob(
- net::URLRequest* request) const {
+ net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
const std::string path = request->url().path();
// If the path ends with a /, we know it's a directory. If the path refers
// to a directory and gets dispatched to FileSystemURLRequestJob, that class
// redirects back here, by adding a / to the URL.
if (!path.empty() && path[path.size() - 1] == '/') {
- return new FileSystemDirURLRequestJob(request, file_system_context_);
+ return new FileSystemDirURLRequestJob(
+ request, network_delegate, file_system_context_);
}
- return new FileSystemURLRequestJob(request, file_system_context_);
+ return new FileSystemURLRequestJob(
+ request, network_delegate, file_system_context_);
}
} // anonymous namespace
« no previous file with comments | « webkit/fileapi/file_system_url_request_job.cc ('k') | webkit/fileapi/file_system_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698