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

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

Issue 23455024: Move ownership of the TextResourceDecoder to DecodedDataDocumentParser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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
« no previous file with comments | « no previous file | Source/core/dom/DecodedDataDocumentParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
}
« no previous file with comments | « no previous file | Source/core/dom/DecodedDataDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698