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

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h

Issue 2242223003: Preload tokens even if a <meta> csp tag is found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up layout test 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/core/html/parser/BackgroundHTMLParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
index c3286ca8689863f1f0e72647a9892decdaf3f50c..8de0f0323bc7cbfaf8b33335cb193d51efef354b 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
@@ -131,6 +131,10 @@ private:
std::unique_ptr<WebTaskRunner> m_loadingTaskRunner;
RefPtr<TokenizedChunkQueue> m_tokenizedChunkQueue;
+ // Index into |m_pendingTokens| of the last <meta> csp token found. Will be
+ // |TokenizedChunk::noPendingToken| if none have been found.
+ int m_pendingCSPMetaTokenIndex;
+
bool m_startingScript;
double m_lastBytesReceivedTime;
bool m_shouldCoalesceChunks;

Powered by Google App Engine
This is Rietveld 408576698