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

Unified Diff: Source/core/html/parser/HTMLDocumentParser.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: Missing include Created 7 years 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 f62d60f07ea5d88347046fd1eaaa3f45f63612f1..e06119d74cac4e3335b6204f6c07342f51337931 100644
--- a/Source/core/html/parser/HTMLDocumentParser.h
+++ b/Source/core/html/parser/HTMLDocumentParser.h
@@ -49,6 +49,11 @@
#include "wtf/WeakPtr.h"
#include "wtf/text/TextPosition.h"
+namespace blink {
+class WebParserResourceBridge;
+class WebThread;
+}
+
namespace WebCore {
class BackgroundHTMLParser;
@@ -62,6 +67,7 @@ class HTMLTreeBuilder;
class HTMLResourcePreloader;
class ScriptController;
class ScriptSourceCode;
+class WebParserResourceBridge;
class PumpSession;
@@ -98,10 +104,12 @@ public:
};
void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&);
+ static void destructResourceBridge(PassOwnPtr<blink::WebParserResourceBridge>);
abarth-chromium 2013/12/18 18:28:49 destruct -> destroy
virtual void appendBytes(const char* bytes, size_t length) OVERRIDE;
virtual void flush() OVERRIDE;
virtual void setDecoder(PassOwnPtr<TextResourceDecoder>) OVERRIDE;
+ virtual void parserResourceMessageFilterAdded() OVERRIDE;
UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSession()); }
@@ -205,8 +213,9 @@ private:
bool m_isPinnedToMainThread;
bool m_endWasDelayed;
- bool m_haveBackgroundParser;
unsigned m_pumpSessionNestingLevel;
+ blink::WebThread* m_parserThread;
+ bool m_parserThreadIsStandalone;
};
}

Powered by Google App Engine
This is Rietveld 408576698