summaryrefslogtreecommitdiffstats
path: root/content/browser/loader/resource_dispatcher_host_impl.h
diff options
context:
space:
mode:
authordavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 03:59:18 +0000
committerdavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 03:59:18 +0000
commit146b8b276bc5388c25482c78d270e7fa773e3cc5 (patch)
treefa6608a7bbb88a7b71e146b6cfa642be51493d92 /content/browser/loader/resource_dispatcher_host_impl.h
parentf967658e63c06a3fe1b505375d14bead8b35eb0b (diff)
downloadchromium_src-146b8b276bc5388c25482c78d270e7fa773e3cc5.zip
chromium_src-146b8b276bc5388c25482c78d270e7fa773e3cc5.tar.gz
chromium_src-146b8b276bc5388c25482c78d270e7fa773e3cc5.tar.bz2
Allow prefetches to outlive their owning RenderViewHost.
This is a rework of r231910. Instead of putting the detachable logic in AsyncResourceHandler, move it to a wrapper DetachableResourceHandler. On detach, it simulates a cancel to the ResourceHandler it wraps and then continues to drain the request itself. This should have fewer buffering complications. BUG=286186 TEST=ResourceDispatcherHostTest.Cancel, ResourceDispatcherHostTest.DetachedResourceTimesOut, ResourceDispatcherHostTest.DeletedFilterDetached, ResourceDispatcherHostTest.DeletedFilterDetachedRedirect, ResourceDispatcherHostTest.DetachWhileStartIsDeferred ResourceDispatcherHostTest.TestProcessCancelDetachedTimeout, ResourceDispatcherHostTest.CancelRequestsForContextDetached, ResourceDispatcherHostTest.DataSentBeforeDetach Review URL: https://codereview.chromium.org/59783003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader/resource_dispatcher_host_impl.h')
-rw-r--r--content/browser/loader/resource_dispatcher_host_impl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 851463e..ef0e4cf 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -238,6 +238,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
TestBlockedRequestsProcessDies);
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
CalculateApproximateMemoryCost);
+ FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
+ DetachableResourceTimesOut);
+ FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
+ TestProcessCancelDetachableTimesOut);
class ShutdownTask;