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

Unified Diff: Source/core/html/parser/TextDocumentParser.h

Issue 779393002: Turn DocumentParser::pinToMainThread into a cleaner api (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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: Source/core/html/parser/TextDocumentParser.h
diff --git a/Source/core/html/parser/TextDocumentParser.h b/Source/core/html/parser/TextDocumentParser.h
index b36edc7264065a840863168977d2c3595c42cf32..5d9846173669eda216c120a4ed10271e416a808e 100644
--- a/Source/core/html/parser/TextDocumentParser.h
+++ b/Source/core/html/parser/TextDocumentParser.h
@@ -32,14 +32,14 @@ namespace blink {
class TextDocumentParser final : public HTMLDocumentParser {
public:
- static PassRefPtrWillBeRawPtr<TextDocumentParser> create(HTMLDocument& document)
+ static PassRefPtrWillBeRawPtr<TextDocumentParser> create(HTMLDocument& document, ParserSynchronizationPolicy syncPolicy)
{
- return adoptRefWillBeNoop(new TextDocumentParser(document));
+ return adoptRefWillBeNoop(new TextDocumentParser(document, syncPolicy));
}
virtual ~TextDocumentParser();
private:
- explicit TextDocumentParser(HTMLDocument&);
+ explicit TextDocumentParser(HTMLDocument&, ParserSynchronizationPolicy);
virtual void appendBytes(const char*, size_t) override;
void insertFakePreElement();
« no previous file with comments | « Source/core/html/parser/ParserSynchronizationPolicy.h ('k') | Source/core/html/parser/TextDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698