| Index: Source/core/dom/DocumentParser.h
|
| diff --git a/Source/core/dom/DocumentParser.h b/Source/core/dom/DocumentParser.h
|
| index 3b3969b21c1e6780be2d31a79198cd45a49c6f3c..b38d380ecbf6db0e9d347e2ed1071e782434d64f 100644
|
| --- a/Source/core/dom/DocumentParser.h
|
| +++ b/Source/core/dom/DocumentParser.h
|
| @@ -26,6 +26,7 @@
|
|
|
| #include "wtf/Forward.h"
|
| #include "wtf/RefCounted.h"
|
| +#include "wtf/RefPtr.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -33,6 +34,7 @@ class Document;
|
| class DocumentWriter;
|
| class SegmentedString;
|
| class ScriptableDocumentParser;
|
| +class TextResourceDecoder;
|
|
|
| class DocumentParser : public RefCounted<DocumentParser> {
|
| public:
|
| @@ -50,6 +52,7 @@ public:
|
| virtual size_t appendBytes(const char* bytes, size_t length) = 0;
|
| virtual size_t flush() = 0;
|
| virtual bool needsDecoder() const { return false; }
|
| + virtual void setDecoder(PassRefPtr<TextResourceDecoder>) { ASSERT_NOT_REACHED(); }
|
|
|
| // pinToMainThread also makes append() not yield before completion of that chunk.
|
| virtual void pinToMainThread() { }
|
|
|