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

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

Issue 2371663002: Introduce an injection point to configure the internal pointer of WeakPtr
Patch Set: fix Created 4 years, 3 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 ab8375dcfe522d2b03c6233329ba0dc43c0316d4..c273fb56df4d41f9d1fa9dc0667b5944b145c566 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
@@ -236,8 +236,8 @@ private:
// so they can be set and cleared together and passed between threads together.
std::unique_ptr<TokenizedChunk> m_lastChunkBeforeScript;
Deque<std::unique_ptr<TokenizedChunk>> m_speculations;
- WeakPtrFactory<HTMLDocumentParser> m_weakFactory;
- WeakPtr<BackgroundHTMLParser> m_backgroundParser;
+ RevocableWeakMemberFactory<HTMLDocumentParser> m_weakFactory;
+ WTF::WeakPtr<BackgroundHTMLParser> m_backgroundParser;
Member<HTMLResourcePreloader> m_preloader;
PreloadRequestStream m_queuedPreloads;
Vector<String> m_queuedDocumentWriteScripts;

Powered by Google App Engine
This is Rietveld 408576698