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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileWriterBase.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/modules/filesystem/FileWriterBase.h
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h b/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
index dcace75a019511a5283ee51e8b38857643dbddfc..89d97d98121bc0ea996a5dda9d1c8f5923a9c6cf 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriterBase.h
@@ -32,7 +32,8 @@
#define FileWriterBase_h
#include "platform/heap/Handle.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -41,7 +42,7 @@ class WebFileWriter;
class FileWriterBase : public GarbageCollectedMixin {
public:
virtual ~FileWriterBase();
- void initialize(std::unique_ptr<WebFileWriter>, long long length);
+ void initialize(PassOwnPtr<WebFileWriter>, long long length);
long long position() const
{
@@ -75,7 +76,7 @@ protected:
void seekInternal(long long position);
private:
- std::unique_ptr<WebFileWriter> m_writer;
+ OwnPtr<WebFileWriter> m_writer;
long long m_position;
long long m_length;
};

Powered by Google App Engine
This is Rietveld 408576698