Index: content/browser/resource_context_impl.cc |
=================================================================== |
--- content/browser/resource_context_impl.cc (revision 128565) |
+++ content/browser/resource_context_impl.cc (working copy) |
@@ -12,6 +12,7 @@ |
#include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
#include "content/browser/net/view_blob_internals_job_factory.h" |
#include "content/browser/net/view_http_cache_job_factory.h" |
+#include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
#include "content/browser/renderer_host/resource_request_info_impl.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
@@ -165,6 +166,11 @@ |
context, kAppCacheServicKeyName); |
} |
+ResourceContext::~ResourceContext() { |
+ if (ResourceDispatcherHostImpl::Get()) |
+ ResourceDispatcherHostImpl::Get()->CancelRequestsForContext(this); |
+} |
+ |
BlobStorageController* GetBlobStorageControllerForResourceContext( |
ResourceContext* resource_context) { |
return GetChromeBlobStorageContextForResourceContext(resource_context)-> |