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

Unified Diff: Source/core/html/parser/HTMLParserScheduler.h

Issue 625583002: Properly suspend HTMLDocumentParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLParserScheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLParserScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698