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: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h

Issue 2642733002: Prerender: Disable prefetch if there's an appcache. (Closed)
Patch Set: clarifying comment Created 3 years, 11 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/core/html/parser/HTMLPreloadScanner.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
index 8433cb9a4e81c5490c7d1ead5b86c4cc9231d049..f327dc64dce997c9719e361bcba8b37ffb62b524 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
@@ -70,6 +70,7 @@ struct CORE_EXPORT CachedDocumentParameters {
Length defaultViewportMinWidth;
bool viewportMetaZeroValuesQuirk;
bool viewportMetaEnabled;
+ bool isPrefetchOnly;
ReferrerPolicy referrerPolicy;
private:
@@ -131,15 +132,18 @@ class TokenPreloadScanner {
Checkpoint(const KURL& predictedBaseElementURL,
bool inStyle,
bool inScript,
+ bool isAppCacheEnabled,
size_t templateCount)
: predictedBaseElementURL(predictedBaseElementURL),
inStyle(inStyle),
inScript(inScript),
+ isAppCacheEnabled(isAppCacheEnabled),
templateCount(templateCount) {}
KURL predictedBaseElementURL;
bool inStyle;
bool inScript;
+ bool isAppCacheEnabled;
size_t templateCount;
};
@@ -157,6 +161,7 @@ class TokenPreloadScanner {
bool m_inStyle;
bool m_inPicture;
bool m_inScript;
+ bool m_isAppCacheEnabled;
PictureData m_pictureData;
size_t m_templateCount;
std::unique_ptr<CachedDocumentParameters> m_documentParameters;

Powered by Google App Engine
This is Rietveld 408576698