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

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

Issue 25772002: Allows prefetch requests to live beyond the renderer by delaying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 2 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/loader/resource_request_info_impl.cc
diff --git a/content/browser/loader/resource_request_info_impl.cc b/content/browser/loader/resource_request_info_impl.cc
index 5af13dbac0a6e039cd6e3c2d06aa2ec146db6d9c..3ff3f19897593142917c54c23800e66f8ec3973b 100644
--- a/content/browser/loader/resource_request_info_impl.cc
+++ b/content/browser/loader/resource_request_info_impl.cc
@@ -45,6 +45,7 @@ void ResourceRequestInfo::AllocateForTesting(
PAGE_TRANSITION_LINK, // transition_type
false, // is_download
false, // is_stream
+ false, // is_detachable
true, // allow_download
false, // has_user_gesture
WebKit::WebReferrerPolicyDefault, // referrer_policy
@@ -97,6 +98,7 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
PageTransition transition_type,
bool is_download,
bool is_stream,
+ bool is_detachable,
bool allow_download,
bool has_user_gesture,
WebKit::WebReferrerPolicy referrer_policy,
@@ -115,6 +117,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
parent_frame_id_(parent_frame_id),
is_download_(is_download),
is_stream_(is_stream),
+ is_detachable_(is_detachable),
+ is_detached_(false),
allow_download_(allow_download),
has_user_gesture_(has_user_gesture),
was_ignored_by_handler_(false),
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698