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

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

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Conflict fix Created 6 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
« no previous file with comments | « Source/core/fetch/ResourceLoader.cpp ('k') | Source/core/html/parser/BackgroundHTMLParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/BackgroundHTMLParser.h
diff --git a/Source/core/html/parser/BackgroundHTMLParser.h b/Source/core/html/parser/BackgroundHTMLParser.h
index f1a76fd000577676c9ef0ea5b580076ebfeb221d..d6223c0c0d6ef07ac5ccf584d14af9dfc5275b65 100644
--- a/Source/core/html/parser/BackgroundHTMLParser.h
+++ b/Source/core/html/parser/BackgroundHTMLParser.h
@@ -65,7 +65,9 @@ public:
String unparsedInput;
};
- void appendBytes(PassOwnPtr<Vector<char> >);
+ void appendRawBytesFromParserThread(const char* data, int dataLength);
+
+ void appendRawBytesFromMainThread(PassOwnPtr<Vector<char> >);
void setDecoder(PassOwnPtr<TextResourceDecoder>);
void flush();
void resumeFrom(PassOwnPtr<Checkpoint>);
@@ -79,7 +81,7 @@ private:
BackgroundHTMLParser(PassRefPtr<WeakReference<BackgroundHTMLParser> >, PassOwnPtr<Configuration>);
~BackgroundHTMLParser();
- void append(const String&);
+ void appendDecodedBytes(const String&);
void markEndOfFile();
void pumpTokenizer();
void sendTokensToMainThread();
« no previous file with comments | « Source/core/fetch/ResourceLoader.cpp ('k') | Source/core/html/parser/BackgroundHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698