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

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

Issue 1402933002: Revert "Post loading tasks on the appropriate WebFrameScheduler's queue." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad merge Created 5 years, 2 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 ad3ccaac5d88150239b82fee62a35e8e4b1e702e..d7878dbc63a9d7bbc8bfbb726cc18ba84eb28006 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.h
@@ -36,7 +36,6 @@ namespace blink {
class Document;
class HTMLDocumentParser;
-class WebTaskRunner;
class ActiveParserSession : public NestingLevelIncrementer {
STACK_ALLOCATED();
@@ -73,9 +72,9 @@ private:
class HTMLParserScheduler {
WTF_MAKE_NONCOPYABLE(HTMLParserScheduler); WTF_MAKE_FAST_ALLOCATED(HTMLParserScheduler);
public:
- static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser, WebTaskRunner* loadingTaskRunner)
+ static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser)
{
- return adoptPtr(new HTMLParserScheduler(parser, loadingTaskRunner));
+ return adoptPtr(new HTMLParserScheduler(parser));
}
~HTMLParserScheduler();
@@ -99,13 +98,13 @@ public:
void detach(); // Clear active tasks if any.
private:
- HTMLParserScheduler(HTMLDocumentParser*, WebTaskRunner*);
+ explicit HTMLParserScheduler(HTMLDocumentParser*);
bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const;
void continueParsing();
HTMLDocumentParser* m_parser;
- OwnPtr<WebTaskRunner> m_loadingTaskRunner;
+ WebTaskRunner* m_loadingTaskRunner; // NOT OWNED
OwnPtr<CancellableTaskFactory> m_cancellableContinueParse;
bool m_isSuspendedWithActiveTimer;

Powered by Google App Engine
This is Rietveld 408576698