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

Unified Diff: Source/core/dom/DocumentParser.h

Issue 535403002: introduce DocumentParserClient to receive parser stopped notification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/core/dom/DocumentParser.h
diff --git a/Source/core/dom/DocumentParser.h b/Source/core/dom/DocumentParser.h
index 252b355014a5eb05b7ec6ff1d5997c01d03c2d6b..f8dba4e1f37e20310529f9bc1583f6578fc2b4e4 100644
--- a/Source/core/dom/DocumentParser.h
+++ b/Source/core/dom/DocumentParser.h
@@ -31,6 +31,7 @@
namespace blink {
class Document;
+class DocumentParserClient;
class SegmentedString;
class ScriptableDocumentParser;
class TextResourceDecoder;
@@ -103,6 +104,9 @@ public:
virtual void suspendScheduledTasks();
virtual void resumeScheduledTasks();
+ void addClient(DocumentParserClient*);
+ void removeClient(DocumentParserClient*);
+
protected:
explicit DocumentParser(Document*);
@@ -121,6 +125,8 @@ private:
// Every DocumentParser needs a pointer back to the document.
// m_document will be 0 after the parser is stopped.
RawPtrWillBeMember<Document> m_document;
+
+ WillBeHeapHashSet<RawPtrWillBeMember<DocumentParserClient> > m_clients;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698