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

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: Rebase 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 e83f3bbd6411bb80acc842efc99330e4db6cc7de..366d5f6fef1b944a1f34342b52f00c1473302833 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
@@ -27,6 +27,7 @@
#define HTMLDocumentParser_h
#include "bindings/core/v8/DocumentWriteEvaluator.h"
+#include "core/CoreExport.h"
#include "core/dom/ParserContentPolicy.h"
#include "core/dom/ScriptableDocumentParser.h"
#include "core/fetch/ResourceClient.h"
@@ -67,7 +68,7 @@ class HTMLTreeBuilder;
class PumpSession;
class TokenizedChunkQueue;
-class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost {
+class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost {
USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser);
USING_PRE_FINALIZER(HTMLDocumentParser, dispose);
public:
@@ -86,6 +87,9 @@ public:
static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent);
+ // Exposed for testing.
+ HTMLScriptRunnerHost* asHTMLScriptRunnerHostForTesting() { return this; }
+
HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
TextPosition textPosition() const final;

Powered by Google App Engine
This is Rietveld 408576698