| 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 1b20554f4bbfe360a9a5730179303f3a898c5c18..e5bfe856f21a97c106e43e15c5e5fb640ab54837 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| @@ -189,10 +189,12 @@ private:
|
| Asynchronous,
|
| };
|
|
|
| - // Setting |sync| to true will just call the closure. Note, this method is
|
| - // completely temporary as we need to maintain both threading
|
| - // implementations until the ParseHTMLOnMainThread experiment finishes.
|
| - void postTaskToLookaheadParser(std::unique_ptr<CrossThreadClosure>, LookaheadParserTaskSynchrony = Asynchronous);
|
| + // Setting |synchronyPolicy| to Synchronous will just call the function
|
| + // with the given parameters. Note, this method is completely temporary
|
| + // as we need to maintain both threading implementations until the
|
| + // ParseHTMLOnMainThread experiment finishes.
|
| + template <typename FunctionType, typename... Ps>
|
| + void postTaskToLookaheadParser(LookaheadParserTaskSynchrony synchronyPolicy, FunctionType, Ps&&... parameters);
|
|
|
| HTMLToken& token() { return *m_token; }
|
|
|
|
|