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

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

Issue 69823002: Move ownership of the TextResourceDecoder to DecodedDataDocumentParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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() { }

Powered by Google App Engine
This is Rietveld 408576698