| Index: third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
|
| index d7878dbc63a9d7bbc8bfbb726cc18ba84eb28006..ef22597512cb56e086aa65edc5124cfe4d6639db 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
|
| @@ -36,6 +36,7 @@ namespace blink {
|
|
|
| class Document;
|
| class HTMLDocumentParser;
|
| +class WebTaskRunner;
|
|
|
| class ActiveParserSession : public NestingLevelIncrementer {
|
| STACK_ALLOCATED();
|
| @@ -72,9 +73,9 @@ private:
|
| class HTMLParserScheduler {
|
| WTF_MAKE_NONCOPYABLE(HTMLParserScheduler); WTF_MAKE_FAST_ALLOCATED(HTMLParserScheduler);
|
| public:
|
| - static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser)
|
| + static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser, WebTaskRunner* loadingTaskRunner)
|
| {
|
| - return adoptPtr(new HTMLParserScheduler(parser));
|
| + return adoptPtr(new HTMLParserScheduler(parser, loadingTaskRunner));
|
| }
|
| ~HTMLParserScheduler();
|
|
|
| @@ -98,7 +99,7 @@ public:
|
| void detach(); // Clear active tasks if any.
|
|
|
| private:
|
| - explicit HTMLParserScheduler(HTMLDocumentParser*);
|
| + HTMLParserScheduler(HTMLDocumentParser*, WebTaskRunner*);
|
|
|
| bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const;
|
| void continueParsing();
|
|
|