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

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

Issue 2172613002: Renderer-side changes for NoState Prefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests 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/HTMLDocumentParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
index 2a540621a2a98429883110ece73ceb5f7c58a148..4e2851ece1010e0220d13f90b3300590e800c87f 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
@@ -70,10 +70,7 @@ class TokenizedChunkQueue;
class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost {
USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser);
public:
- static HTMLDocumentParser* create(HTMLDocument& document, ParserSynchronizationPolicy backgroundParsingPolicy)
- {
- return new HTMLDocumentParser(document, backgroundParsingPolicy);
- }
+ static HTMLDocumentParser* create(HTMLDocument&, ParserSynchronizationPolicy);
~HTMLDocumentParser() override;
DECLARE_VIRTUAL_TRACE();
@@ -82,6 +79,10 @@ public:
static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent);
+ // Exposed for testing.
Charlie Harrison 2016/08/03 14:40:03 Append "ForTesting" to the end of methods that sho
+ static bool threadingAllowedForDocument(HTMLDocument&);
+ HTMLScriptRunnerHost* asHTMLScriptRunnerHost() { return this; }
+
HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
TextPosition textPosition() const final;

Powered by Google App Engine
This is Rietveld 408576698