Chromium Code Reviews| Index: Source/core/dom/DecodedDataDocumentParser.h |
| diff --git a/Source/core/dom/DecodedDataDocumentParser.h b/Source/core/dom/DecodedDataDocumentParser.h |
| index c237175c2c38277e11f5fe7f5b8b291de1e514f8..58519f45ecd02eba7dbf4326d506b7eb6afa0eef 100644 |
| --- a/Source/core/dom/DecodedDataDocumentParser.h |
| +++ b/Source/core/dom/DecodedDataDocumentParser.h |
| @@ -39,11 +39,12 @@ public: |
| virtual bool wellFormed() const { return true; } |
| // The below functions are used by DocumentWriter (the loader). |
| - virtual size_t appendBytes(const char* bytes, size_t length) OVERRIDE; |
| - virtual size_t flush() OVERRIDE; |
| + virtual void appendBytes(const char* bytes, size_t length) OVERRIDE; |
| + virtual void flush() OVERRIDE; |
| virtual bool needsDecoder() const OVERRIDE { return !m_decoder; } |
| virtual void setDecoder(PassRefPtr<TextResourceDecoder>) OVERRIDE; |
| virtual PassRefPtr<TextResourceDecoder> decoder() OVERRIDE; |
| + virtual void setHasAppendedData() OVERRIDE; |
|
eseidel
2013/11/18 23:46:08
Why does this need to be virtual?
|
| protected: |
| explicit DecodedDataDocumentParser(Document*); |
| @@ -53,8 +54,9 @@ private: |
| // append is used by DocumentWriter::replaceDocument. |
| virtual void append(PassRefPtr<StringImpl>) = 0; |
| - void updateDocumentEncoding(); |
| + void updateDocument(String& decodedData); |
| + bool m_hasAppendedData; |
| RefPtr<TextResourceDecoder> m_decoder; |
| }; |