Index: Source/core/html/parser/HTMLParserScheduler.h |
diff --git a/Source/core/html/parser/HTMLParserScheduler.h b/Source/core/html/parser/HTMLParserScheduler.h |
index cd8cdb4d5cc5158727a1e8b7efbc37e436d98ba2..d8d73fe7408a34e48f804e3584ca55a12c477dd3 100644 |
--- a/Source/core/html/parser/HTMLParserScheduler.h |
+++ b/Source/core/html/parser/HTMLParserScheduler.h |
@@ -81,6 +81,15 @@ public: |
void scheduleForResume(); |
bool yieldIfNeeded(const SpeculationsPumpSession&, bool startingScript); |
+ /** |
+ * Can only be called if this scheduler is suspended. If this is called, |
+ * then after the scheduler is resumed by calling resume(), this call |
+ * ensures that HTMLDocumentParser::resumeAfterYield will be called. Used to |
+ * signal this scheduler that the background html parser sent chunks to |
+ * HTMLDocumentParser while it was suspended. |
+ */ |
+ void forceResumeAfterYield(); |
+ |
void suspend(); |
void resume(); |