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

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

Issue 1394663004: Reland: BackgroundHTMLParser: Introduce ParsedChunkQueue to pass ParsedChunks to main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ParsedChunkQueue should be ThreadSafeRefCounted 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/HTMLDocumentParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
index f41d9b030ae6df4aa453c51e3f5c958b9e260e48..b3136baedd5eaebc6b4aa35089e94adf33d7c1ea 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
@@ -60,10 +60,10 @@ class DocumentFragment;
class Element;
class HTMLDocument;
class HTMLParserScheduler;
+class HTMLResourcePreloader;
class HTMLScriptRunner;
class HTMLTreeBuilder;
-class HTMLResourcePreloader;
-
+class ParsedChunkQueue;
class PumpSession;
class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost {
@@ -103,7 +103,7 @@ public:
TokenPreloadScannerCheckpoint preloadScannerCheckpoint;
bool startingScript;
};
- void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
+ void notifyPendingParsedChunks();
void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&);
void appendBytes(const char* bytes, size_t length) override;
@@ -202,6 +202,7 @@ private:
WeakPtr<BackgroundHTMLParser> m_backgroundParser;
OwnPtrWillBeMember<HTMLResourcePreloader> m_preloader;
PreloadRequestStream m_queuedPreloads;
+ RefPtr<ParsedChunkQueue> m_parsedChunkQueue;
bool m_shouldUseThreading;
bool m_endWasDelayed;

Powered by Google App Engine
This is Rietveld 408576698