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

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: Asanka fixes. Made more general for future <a ping> support. 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..54505b6569fdfc132f3baf391271611def82eaba 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,7 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
parent_frame_id_(parent_frame_id),
is_download_(is_download),
is_stream_(is_stream),
+ is_detachable_(is_detachable),
allow_download_(allow_download),
has_user_gesture_(has_user_gesture),
was_ignored_by_handler_(false),

Powered by Google App Engine
This is Rietveld 408576698