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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.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/modules/indexeddb/IDBCursorWithValue.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h b/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
index 49ab3e51914771fe209412ec53c6399c86a8eceb..9fac966e1d4c25f61df9cbe3d2594b66c4649853 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBCursorWithValue.h
@@ -30,7 +30,7 @@
#include "modules/indexeddb/IndexedDB.h"
#include "public/platform/modules/indexeddb/WebIDBCursor.h"
#include "public/platform/modules/indexeddb/WebIDBTypes.h"
-#include "wtf/PassOwnPtr.h"
+#include <memory>
namespace blink {
@@ -41,7 +41,7 @@ class IDBTransaction;
class IDBCursorWithValue final : public IDBCursor {
DEFINE_WRAPPERTYPEINFO();
public:
- static IDBCursorWithValue* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
+ static IDBCursorWithValue* create(std::unique_ptr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
~IDBCursorWithValue() override;
// The value attribute defined in the IDL is simply implemented in IDBCursor (but not exposed via
@@ -51,7 +51,7 @@ public:
bool isCursorWithValue() const override { return true; }
private:
- IDBCursorWithValue(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
+ IDBCursorWithValue(std::unique_ptr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
};
DEFINE_TYPE_CASTS(IDBCursorWithValue, IDBCursor, cursor, cursor->isCursorWithValue(), cursor.isCursorWithValue());

Powered by Google App Engine
This is Rietveld 408576698