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

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

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: +DISALLOW_COPY_AND_ASSIGN for win build fix Created 3 years, 11 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/BackgroundHTMLParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
index 0b4482a1b90a94c23c39bfc1c311fc9269267b03..b2016554e2df5a4eaa1875b75265a45797cc6d8c 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.h
@@ -71,7 +71,7 @@ class BackgroundHTMLParser {
// thread: it must first be initialized by calling init(), and free by
// calling stop().
static WeakPtr<BackgroundHTMLParser> create(std::unique_ptr<Configuration>,
- std::unique_ptr<WebTaskRunner>);
+ RefPtr<WebTaskRunner>);
void init(const KURL& documentURL,
std::unique_ptr<CachedDocumentParameters>,
const MediaValuesCached::MediaValuesCachedData&);
@@ -101,8 +101,7 @@ class BackgroundHTMLParser {
void forcePlaintextForTextDocument();
private:
- BackgroundHTMLParser(std::unique_ptr<Configuration>,
- std::unique_ptr<WebTaskRunner>);
+ BackgroundHTMLParser(std::unique_ptr<Configuration>, RefPtr<WebTaskRunner>);
~BackgroundHTMLParser();
void appendDecodedBytes(const String&);
@@ -140,7 +139,7 @@ class BackgroundHTMLParser {
std::unique_ptr<TokenPreloadScanner> m_preloadScanner;
std::unique_ptr<TextResourceDecoder> m_decoder;
DocumentEncodingData m_lastSeenEncodingData;
- std::unique_ptr<WebTaskRunner> m_loadingTaskRunner;
+ RefPtr<WebTaskRunner> m_loadingTaskRunner;
RefPtr<TokenizedChunkQueue> m_tokenizedChunkQueue;
// Index into |m_pendingTokens| of the last <meta> csp token found. Will be

Powered by Google App Engine
This is Rietveld 408576698