Index: Source/core/dom/DecodedDataDocumentParser.h |
diff --git a/Source/core/dom/DecodedDataDocumentParser.h b/Source/core/dom/DecodedDataDocumentParser.h |
index 453147d0ecdbddad2e90e7e9cda345afa016b534..59b56d051584613e0289785f2b4c0de985232ffe 100644 |
--- a/Source/core/dom/DecodedDataDocumentParser.h |
+++ b/Source/core/dom/DecodedDataDocumentParser.h |
@@ -42,11 +42,13 @@ 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*); |
virtual ~DecodedDataDocumentParser(); |
@@ -58,6 +60,7 @@ private: |
void updateDocument(String& decodedData); |
bool m_hasAppendedData; |
+ bool m_needsDecoder; |
OwnPtr<TextResourceDecoder> m_decoder; |
}; |