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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h

Issue 2134323002: Remove threading primitives from ParseHTMLOnMainThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove crossThreadBind from BackgroundHTMLParser Created 4 years, 5 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 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; }

Powered by Google App Engine
This is Rietveld 408576698