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

Unified Diff: webkit/blob/blob_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
« no previous file with comments | « webkit/blob/blob_url_request_job_factory.h ('k') | webkit/blob/blob_url_request_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_url_request_job_factory.cc
diff --git a/webkit/blob/blob_url_request_job_factory.cc b/webkit/blob/blob_url_request_job_factory.cc
index 539570e9f582e65ba1876e45523be69747acf869..52f08747c9b0896e635380cae0fd912e750d477b 100644
--- a/webkit/blob/blob_url_request_job_factory.cc
+++ b/webkit/blob/blob_url_request_job_factory.cc
@@ -26,13 +26,14 @@ BlobProtocolHandler::BlobProtocolHandler(
BlobProtocolHandler::~BlobProtocolHandler() {}
net::URLRequestJob* BlobProtocolHandler::MaybeCreateJob(
- net::URLRequest* request) const {
+ net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
scoped_refptr<webkit_blob::BlobData> data = LookupBlobData(request);
if (!data) {
// This request is not coming through resource dispatcher host.
data = blob_storage_controller_->GetBlobDataFromUrl(request->url());
}
- return new webkit_blob::BlobURLRequestJob(request, data, file_loop_proxy_);
+ return new webkit_blob::BlobURLRequestJob(
+ request, network_delegate, data, file_loop_proxy_);
}
scoped_refptr<webkit_blob::BlobData>
« no previous file with comments | « webkit/blob/blob_url_request_job_factory.h ('k') | webkit/blob/blob_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698