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

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

Issue 74493002: Removed refcounting from TextResourceDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step2
Patch Set: Compile fix 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 58519f45ecd02eba7dbf4326d506b7eb6afa0eef..453147d0ecdbddad2e90e7e9cda345afa016b534 100644
--- a/Source/core/dom/DecodedDataDocumentParser.h
+++ b/Source/core/dom/DecodedDataDocumentParser.h
@@ -27,6 +27,7 @@
#define DecodedDataDocumentParser_h
#include "core/dom/DocumentParser.h"
+#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
namespace WebCore {
@@ -42,8 +43,8 @@ public:
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 setDecoder(PassOwnPtr<TextResourceDecoder>) OVERRIDE;
+ virtual TextResourceDecoder* decoder() OVERRIDE;
virtual void setHasAppendedData() OVERRIDE;
protected:
@@ -57,7 +58,7 @@ private:
void updateDocument(String& decodedData);
bool m_hasAppendedData;
- RefPtr<TextResourceDecoder> m_decoder;
+ OwnPtr<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