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

Unified Diff: third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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 ba9d1fc2a2bdef183d46d9a05b13c057caea99d2..37f32d5b7c0345d220623836abda9b769d66b86d 100644
--- a/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h
+++ b/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.h
@@ -35,6 +35,7 @@
#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -47,7 +48,7 @@ public:
TextResourceDecoderBuilder(const AtomicString& mimeType, const AtomicString& encoding);
~TextResourceDecoderBuilder();
- PassOwnPtr<TextResourceDecoder> buildFor(Document*);
+ std::unique_ptr<TextResourceDecoder> buildFor(Document*);
const AtomicString& mimeType() const { return m_mimeType; }
const AtomicString& encoding() const { return m_encoding; }
@@ -55,7 +56,7 @@ public:
void clear();
private:
- PassOwnPtr<TextResourceDecoder> createDecoderInstance(Document*);
+ std::unique_ptr<TextResourceDecoder> createDecoderInstance(Document*);
void setupEncoding(TextResourceDecoder*, Document*);
AtomicString m_mimeType;

Powered by Google App Engine
This is Rietveld 408576698