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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

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: Cleanup 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: third_party/WebKit/Source/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index 7184c1cc8ce7d2ec8e109ef6686a643ccc26720b..8607d48533907c4d658bd9eafff4cdbe661f7542 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -137,6 +137,11 @@ bool WebDocument::isPluginDocument() const
return constUnwrap<Document>()->isPluginDocument();
}
+bool WebDocument::isPrefetchOnly() const
+{
+ return constUnwrap<Document>()->isPrefetchOnly();
clamy 2016/08/25 22:34:59 How is isPrefetchOnly set on the document? Is this
mattcary 2016/08/26 08:17:51 Yes, only true for no-state prefetch currently. It
+}
+
WebURL WebDocument::baseURL() const
{
return constUnwrap<Document>()->baseURL();

Powered by Google App Engine
This is Rietveld 408576698