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/loader/TextResourceDecoderBuilder.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/loader/TextResourceDecoderBuilder.h
diff --git a/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h b/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h
index 37f32d5b7c0345d220623836abda9b769d66b86d..ba9d1fc2a2bdef183d46d9a05b13c057caea99d2 100644
--- a/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h
+++ b/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h
@@ -35,7 +35,6 @@
#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -48,7 +47,7 @@ public:
TextResourceDecoderBuilder(const AtomicString& mimeType, const AtomicString& encoding);
~TextResourceDecoderBuilder();
- std::unique_ptr<TextResourceDecoder> buildFor(Document*);
+ PassOwnPtr<TextResourceDecoder> buildFor(Document*);
const AtomicString& mimeType() const { return m_mimeType; }
const AtomicString& encoding() const { return m_encoding; }
@@ -56,7 +55,7 @@ public:
void clear();
private:
- std::unique_ptr<TextResourceDecoder> createDecoderInstance(Document*);
+ PassOwnPtr<TextResourceDecoder> createDecoderInstance(Document*);
void setupEncoding(TextResourceDecoder*, Document*);
AtomicString m_mimeType;

Powered by Google App Engine
This is Rietveld 408576698