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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobData.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/platform/blob/BlobData.h
diff --git a/third_party/WebKit/Source/platform/blob/BlobData.h b/third_party/WebKit/Source/platform/blob/BlobData.h
index c132b9561f96a68042a4b1359f8def820e44a332..d357358c6559d426fd30ccdb586ce617eed09f7c 100644
--- a/third_party/WebKit/Source/platform/blob/BlobData.h
+++ b/third_party/WebKit/Source/platform/blob/BlobData.h
@@ -35,9 +35,9 @@
#include "platform/FileMetadata.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Forward.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -164,7 +164,7 @@ class PLATFORM_EXPORT BlobData {
USING_FAST_MALLOC(BlobData);
WTF_MAKE_NONCOPYABLE(BlobData);
public:
- static std::unique_ptr<BlobData> create();
+ static PassOwnPtr<BlobData> create();
// Detaches from current thread so that it can be passed to another thread.
void detachFromCurrentThread();
@@ -208,7 +208,7 @@ public:
}
// For initial creation.
- static PassRefPtr<BlobDataHandle> create(std::unique_ptr<BlobData> data, long long size)
+ static PassRefPtr<BlobDataHandle> create(PassOwnPtr<BlobData> data, long long size)
{
return adoptRef(new BlobDataHandle(std::move(data), size));
}
@@ -227,7 +227,7 @@ public:
private:
BlobDataHandle();
- BlobDataHandle(std::unique_ptr<BlobData>, long long size);
+ BlobDataHandle(PassOwnPtr<BlobData>, long long size);
BlobDataHandle(const String& uuid, const String& type, long long size);
const String m_uuid;
« no previous file with comments | « third_party/WebKit/Source/platform/audio/Spatializer.cpp ('k') | third_party/WebKit/Source/platform/blob/BlobData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698