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

Unified Diff: Source/core/dom/DecodedDataDocumentParser.h

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: XSSAuditor fix 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/dom/DecodedDataDocumentParser.h
diff --git a/Source/core/dom/DecodedDataDocumentParser.h b/Source/core/dom/DecodedDataDocumentParser.h
index 453147d0ecdbddad2e90e7e9cda345afa016b534..979310d4874ea3d04e570ac5333e845432820d38 100644
--- a/Source/core/dom/DecodedDataDocumentParser.h
+++ b/Source/core/dom/DecodedDataDocumentParser.h
@@ -42,10 +42,11 @@ public:
// The below functions are used by DocumentWriter (the loader).
virtual void appendBytes(const char* bytes, size_t length) OVERRIDE;
virtual void flush() OVERRIDE;
- virtual bool needsDecoder() const OVERRIDE { return !m_decoder; }
+ virtual bool needsDecoder() const OVERRIDE { return m_needsDecoder; }
virtual void setDecoder(PassOwnPtr<TextResourceDecoder>) OVERRIDE;
virtual TextResourceDecoder* decoder() OVERRIDE;
- virtual void setHasAppendedData() OVERRIDE;
+
+ PassOwnPtr<TextResourceDecoder> takeDecoder();
protected:
explicit DecodedDataDocumentParser(Document*);
@@ -57,7 +58,7 @@ private:
void updateDocument(String& decodedData);
- bool m_hasAppendedData;
+ bool m_needsDecoder;
OwnPtr<TextResourceDecoder> m_decoder;
};

Powered by Google App Engine
This is Rietveld 408576698