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

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

Issue 1823863002: Simplify parsing/loading state, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 4 years, 9 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/HTMLParserScheduler.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
index da8cddc2f52fc2365ff80098ac531085b5b2aac2..0445b84401043511440640b9884c5eecdaf4fa90 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
@@ -34,31 +34,20 @@
namespace blink {
-class Document;
class HTMLDocumentParser;
class WebTaskRunner;
-class ActiveParserSession : public NestingLevelIncrementer {
+class PumpSession : public NestingLevelIncrementer {
STACK_ALLOCATED();
public:
- ActiveParserSession(unsigned& nestingLevel, Document*);
- ~ActiveParserSession();
-
-private:
- RefPtrWillBeMember<Document> m_document;
-};
-
-class PumpSession : public ActiveParserSession {
- STACK_ALLOCATED();
-public:
- PumpSession(unsigned& nestingLevel, Document*);
+ PumpSession(unsigned& nestingLevel);
~PumpSession();
};
-class SpeculationsPumpSession : public ActiveParserSession {
+class SpeculationsPumpSession : public NestingLevelIncrementer {
STACK_ALLOCATED();
public:
- SpeculationsPumpSession(unsigned& nestingLevel, Document*);
+ SpeculationsPumpSession(unsigned& nestingLevel);
~SpeculationsPumpSession();
double elapsedTime() const;

Powered by Google App Engine
This is Rietveld 408576698