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

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

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.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index 6947315aa4c436bd5229336d669cef4b125e25e7..807f3658e1ab90d49c5568457f1fe3f996f5ed3f 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -51,6 +51,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
PageTransition transition_type,
bool is_download,
bool is_stream,
+ bool is_detachable,
bool allow_download,
bool has_user_gesture,
WebKit::WebReferrerPolicy referrer_policy,
@@ -123,6 +124,11 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool is_stream() const { return is_stream_; }
void set_is_stream(bool stream) { is_stream_ = stream; }
+ // Whether this is a detachable resource. Detachable resource requests can
+ // live beyond the life of the renderer.
asanka 2013/10/14 21:06:49 Nit: In practice this flag means the request is al
+ bool is_detachable() const { return is_detachable_; }
+ void set_is_detachable(bool is_detachable) { is_detachable_ = is_detachable; }
+
void set_was_ignored_by_handler(bool value) {
was_ignored_by_handler_ = value;
}
@@ -147,6 +153,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
int64 parent_frame_id_;
bool is_download_;
bool is_stream_;
+ bool is_detachable_;
bool allow_download_;
bool has_user_gesture_;
bool was_ignored_by_handler_;

Powered by Google App Engine
This is Rietveld 408576698