| Index: Source/core/dom/DecodedDataDocumentParser.h
|
| diff --git a/Source/core/dom/DecodedDataDocumentParser.h b/Source/core/dom/DecodedDataDocumentParser.h
|
| index c931c0c7402711ffce1a7a3af0cd39174986a827..73fdbd0e5ef9cb3e1d20ed66bb0f0c3fa98a6b14 100644
|
| --- a/Source/core/dom/DecodedDataDocumentParser.h
|
| +++ b/Source/core/dom/DecodedDataDocumentParser.h
|
| @@ -27,8 +27,10 @@
|
| #define DecodedDataDocumentParser_h
|
|
|
| #include "core/dom/DocumentParser.h"
|
| +#include "wtf/RefPtr.h"
|
|
|
| namespace WebCore {
|
| +class TextResourceDecoder;
|
|
|
| class DecodedDataDocumentParser : public DocumentParser {
|
| public:
|
| @@ -36,8 +38,11 @@ public:
|
| // XMLHttpRequest if the responseXML was well formed.
|
| virtual bool wellFormed() const { return true; }
|
|
|
| + void setDecoder(PassRefPtr<TextResourceDecoder>);
|
| +
|
| protected:
|
| explicit DecodedDataDocumentParser(Document*);
|
| + virtual ~DecodedDataDocumentParser();
|
|
|
| private:
|
| // append is used by DocumentWriter::replaceDocument.
|
| @@ -47,6 +52,9 @@ private:
|
| virtual size_t appendBytes(const char* bytes, size_t length) OVERRIDE;
|
| virtual size_t flush() OVERRIDE;
|
| virtual bool needsDecoder() const OVERRIDE { return true; }
|
| + virtual DecodedDataDocumentParser* asDecodedDataDocumentParser() OVERRIDE { return this; }
|
| +
|
| + RefPtr<TextResourceDecoder> m_decoder;
|
| };
|
|
|
| }
|
|
|