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

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

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: DocumentEncodingData is now constructed from a decoder Created 7 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/HTMLDocumentParser.h
diff --git a/Source/core/html/parser/HTMLDocumentParser.h b/Source/core/html/parser/HTMLDocumentParser.h
index b41beae929c1c532d848ad2f2096f35b4cfab52a..c881dd2ab483a06242687450ba327a0b2f949016 100644
--- a/Source/core/html/parser/HTMLDocumentParser.h
+++ b/Source/core/html/parser/HTMLDocumentParser.h
@@ -29,6 +29,7 @@
#include "core/dom/ParserContentPolicy.h"
#include "core/dom/ScriptableDocumentParser.h"
#include "core/fetch/ResourceClient.h"
+#include "core/fetch/TextResourceDecoder.h"
#include "core/html/parser/BackgroundHTMLInputStream.h"
#include "core/html/parser/CompactHTMLToken.h"
#include "core/html/parser/HTMLInputStream.h"
@@ -95,6 +96,10 @@ public:
TokenPreloadScannerCheckpoint preloadScannerCheckpoint;
};
void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
+ void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&);
+
+ virtual void appendBytes(const char* bytes, size_t length) OVERRIDE;
eseidel 2013/11/19 22:27:45 I thought you changed this to Vector<char>? I gue
oystein (OOO til 10th of July) 2013/11/19 22:52:19 I just changed the buffer we pass to the Backgroun
+ virtual void flush() OVERRIDE;
protected:
virtual void insert(const SegmentedString&) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698