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

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: Added another layout test. Use index into |tokens| in TokenizedChunk 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..ab676f209c57b3b45e5ba9aedd11c6c28f2fe1b4 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
@@ -36,6 +36,7 @@
#include "core/html/parser/TextResourceDecoder.h"
#include "core/html/parser/TokenizedChunkQueue.h"
#include "core/html/parser/XSSAuditorDelegate.h"
+#include "wtf/Optional.h"
#include "wtf/WeakPtr.h"
#include <memory>
@@ -131,6 +132,8 @@ private:
std::unique_ptr<WebTaskRunner> m_loadingTaskRunner;
RefPtr<TokenizedChunkQueue> m_tokenizedChunkQueue;
+ WTF::Optional<int> m_pendingCSPMetaTokenIndex;
kouhei (in TOK) 2016/08/22 05:34:03 Checked with TOK C++ experts. I think we should go
Charlie Harrison 2016/08/22 14:08:05 SGTM. Changed it.
+
bool m_startingScript;
double m_lastBytesReceivedTime;
bool m_shouldCoalesceChunks;

Powered by Google App Engine
This is Rietveld 408576698