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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.cc

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix race condition Created 8 years, 10 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: content/browser/renderer_host/resource_dispatcher_host.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host.cc (revision 122771)
+++ content/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -90,6 +90,7 @@
using base::TimeTicks;
using content::BrowserThread;
using content::GlobalRequestID;
+using content::ResourceContext;
using content::ResourceResponse;
using content::ResourceThrottle;
using content::ThrottlingResourceHandler;
@@ -541,7 +542,7 @@
// Might need to resolve the blob references in the upload data.
if (request_data.upload_data) {
- resource_context->GetBlobStorageContext()->controller()->
+ ResourceContext::GetBlobStorageController(resource_context)->
ResolveBlobReferencesInUploadData(request_data.upload_data.get());
}
@@ -716,14 +717,14 @@
// Hang on to a reference to ensure the blob is not released prior
// to the job being started.
webkit_blob::BlobStorageController* controller =
- resource_context->GetBlobStorageContext()->controller();
+ ResourceContext::GetBlobStorageController(resource_context);
extra_info->set_requested_blob_data(
controller->GetBlobDataFromUrl(request->url()));
}
// Have the appcache associate its extra info with the request.
appcache::AppCacheInterceptor::SetExtraRequestInfo(
- request, resource_context->GetAppCacheService(), child_id,
+ request, ResourceContext::GetAppCacheService(resource_context), child_id,
request_data.appcache_host_id, request_data.resource_type);
if (deferred_request) {

Powered by Google App Engine
This is Rietveld 408576698