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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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: 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 4d80cf949fbd7c902abc80b54981df873097e84a..a2dbce68b2fe116c43ba9b35ca18479148bd4062 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 <memory>
+#include "wtf/OwnPtr.h"
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(std::unique_ptr<TextResourceDecoder>) override;
+ void setDecoder(PassOwnPtr<TextResourceDecoder>) override;
TextResourceDecoder* decoder() final;
- std::unique_ptr<TextResourceDecoder> takeDecoder();
+ PassOwnPtr<TextResourceDecoder> takeDecoder();
protected:
explicit DecodedDataDocumentParser(Document&);
@@ -55,7 +55,7 @@ private:
void updateDocument(String& decodedData);
bool m_needsDecoder;
- std::unique_ptr<TextResourceDecoder> m_decoder;
+ OwnPtr<TextResourceDecoder> m_decoder;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698