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

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: mac fix Created 4 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: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
index e90928685871fd546157ceffd2e028bdfea775ea..86169ccedb0f7b47a765d9b62384130c9979341a 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
@@ -88,7 +88,7 @@ static void checkThatXSSInfosAreSafeToSendToAnotherThread(
WeakPtr<BackgroundHTMLParser> BackgroundHTMLParser::create(
std::unique_ptr<Configuration> config,
- std::unique_ptr<WebTaskRunner> loadingTaskRunner) {
+ RefPtr<WebTaskRunner> loadingTaskRunner) {
auto* backgroundParser =
new BackgroundHTMLParser(std::move(config), std::move(loadingTaskRunner));
return backgroundParser->m_weakFactory.createWeakPtr();
@@ -109,7 +109,7 @@ BackgroundHTMLParser::Configuration::Configuration()
BackgroundHTMLParser::BackgroundHTMLParser(
std::unique_ptr<Configuration> config,
- std::unique_ptr<WebTaskRunner> loadingTaskRunner)
+ RefPtr<WebTaskRunner> loadingTaskRunner)
: m_weakFactory(this),
m_token(wrapUnique(new HTMLToken)),
m_tokenizer(HTMLTokenizer::create(config->options)),

Powered by Google App Engine
This is Rietveld 408576698