Index: third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.h |
diff --git a/third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.h b/third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.h |
index a2dbce68b2fe116c43ba9b35ca18479148bd4062..4d80cf949fbd7c902abc80b54981df873097e84a 100644 |
--- a/third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.h |
+++ b/third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.h |
@@ -27,7 +27,7 @@ |
#define DecodedDataDocumentParser_h |
#include "core/dom/DocumentParser.h" |
-#include "wtf/OwnPtr.h" |
+#include <memory> |
namespace blink { |
class TextResourceDecoder; |
@@ -42,10 +42,10 @@ public: |
void appendBytes(const char* bytes, size_t length) override; |
virtual void flush(); |
bool needsDecoder() const final { return m_needsDecoder; } |
- void setDecoder(PassOwnPtr<TextResourceDecoder>) override; |
+ void setDecoder(std::unique_ptr<TextResourceDecoder>) override; |
TextResourceDecoder* decoder() final; |
- PassOwnPtr<TextResourceDecoder> takeDecoder(); |
+ std::unique_ptr<TextResourceDecoder> takeDecoder(); |
protected: |
explicit DecodedDataDocumentParser(Document&); |
@@ -55,7 +55,7 @@ private: |
void updateDocument(String& decodedData); |
bool m_needsDecoder; |
- OwnPtr<TextResourceDecoder> m_decoder; |
+ std::unique_ptr<TextResourceDecoder> m_decoder; |
}; |
} // namespace blink |