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

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: better way to call m_parserScheduler->resume Created 6 years, 1 month 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/html/parser/HTMLParserScheduler.h
diff --git a/Source/core/html/parser/HTMLParserScheduler.h b/Source/core/html/parser/HTMLParserScheduler.h
index 5c853a30d111ddc096f2b9a5a582181ce94945e5..a69a67b6e7a34d0de3227a21f676e1281c7c7719 100644
--- a/Source/core/html/parser/HTMLParserScheduler.h
+++ b/Source/core/html/parser/HTMLParserScheduler.h
@@ -77,6 +77,15 @@ public:
bool yieldIfNeeded(const SpeculationsPumpSession&);
+ /**
+ * 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();

Powered by Google App Engine
This is Rietveld 408576698