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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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: content/browser/loader/resource_dispatcher_host_impl.cc
===================================================================
--- content/browser/loader/resource_dispatcher_host_impl.cc (revision 171309)
+++ content/browser/loader/resource_dispatcher_host_impl.cc (working copy)
@@ -77,7 +77,9 @@
#include "net/url_request/url_request_job_factory.h"
#include "webkit/appcache/appcache_interceptor.h"
#include "webkit/appcache/appcache_interfaces.h"
-#include "webkit/blob/blob_storage_controller.h"
+#include "webkit/blob/blob_data.h"
+#include "webkit/blob/blob_storage_context.h"
+#include "webkit/blob/blob_url_request_job_factory.h"
#include "webkit/blob/shareable_file_reference.h"
#include "webkit/glue/resource_request_body.h"
#include "webkit/glue/webkit_glue.h"
@@ -955,7 +957,7 @@
if (request_data.request_body) {
request->set_upload(
request_data.request_body->ResolveElementsAndCreateUploadData(
- filter_->blob_storage_context()->controller()));
+ filter_->blob_storage_context()->context()));
}
bool allow_download = request_data.allow_download &&
@@ -985,9 +987,10 @@
if (request->url().SchemeIs(chrome::kBlobScheme)) {
// Hang on to a reference to ensure the blob is not released prior
// to the job being started.
- extra_info->set_requested_blob_data(
- filter_->blob_storage_context()->controller()->
- GetBlobDataFromUrl(request->url()));
+ webkit_blob::BlobProtocolHandler::SetRequestedBlobDataHandle(
+ request,
+ filter_->blob_storage_context()->context()->
+ GetBlobDataFromPublicUrl(request->url()));
}
// Have the appcache associate its extra info with the request.

Powered by Google App Engine
This is Rietveld 408576698