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

Unified Diff: content/child/request_extra_data.h

Issue 2262183002: [NoStatePrefetch] Do not send responses to renderer in prefetch mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: Fix uninitialized variable Created 4 years, 4 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/child/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index 77c164655d90cc967c20db1d5c24e34fb6eeadc6..4eabcd6e867fe142f4d468d4b81ca3d7f4f0080c 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -133,6 +133,9 @@ class CONTENT_EXPORT RequestExtraData
initiated_in_secure_context_ = secure;
}
+ bool is_prefetch_only() const { return is_prefetch_only_; }
+ void set_is_prefetch_only(bool prefetch) { is_prefetch_only_ = prefetch; }
+
private:
blink::WebPageVisibilityState visibility_state_;
int render_frame_id_;
@@ -151,6 +154,7 @@ class CONTENT_EXPORT RequestExtraData
blink::WebString requested_with_;
std::unique_ptr<StreamOverrideParameters> stream_override_;
bool initiated_in_secure_context_;
+ bool is_prefetch_only_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};

Powered by Google App Engine
This is Rietveld 408576698