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

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: Fix style 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 84a12b1b2b83237923cff750cd9b0edfbdbaec63..3192263de813d795839b99b6cf6b91da74d71498 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"
@@ -69,7 +70,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:
@@ -88,6 +89,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