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

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: use -1 instead of WTF::Optional 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..0a322f79ade1002acae4f9bc633e74d8dbc2bbdb 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
+ // -1 if none have been found.
+ int m_pendingCSPMetaTokenIndex;
kouhei (in TOK) 2016/08/23 02:18:39 static constexpr int noPendingToken = -1;
Charlie Harrison 2016/08/23 03:08:41 Hm, that member should be public somehow, right? O
+
bool m_startingScript;
double m_lastBytesReceivedTime;
bool m_shouldCoalesceChunks;

Powered by Google App Engine
This is Rietveld 408576698