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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBCursor.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/indexeddb/IDBCursor.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBCursor.h b/third_party/WebKit/Source/modules/indexeddb/IDBCursor.h
index 57c97d5b7636f65e6c513fcb46c153ae89f6bb30..e4af6696ae706867e43b03ca3d819228e6c32545 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBCursor.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBCursor.h
@@ -35,7 +35,6 @@
#include "public/platform/modules/indexeddb/WebIDBTypes.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
-#include <memory>
namespace blink {
@@ -50,7 +49,7 @@ class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
public:
static WebIDBCursorDirection stringToDirection(const String& modeString);
- static IDBCursor* create(std::unique_ptr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
+ static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
virtual ~IDBCursor();
DECLARE_TRACE();
void contextWillBeDestroyed() { m_backend.reset(); }
@@ -84,12 +83,12 @@ public:
virtual bool isCursorWithValue() const { return false; }
protected:
- IDBCursor(std::unique_ptr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
+ IDBCursor(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*);
private:
IDBObjectStore* effectiveObjectStore() const;
- std::unique_ptr<WebIDBCursor> m_backend;
+ OwnPtr<WebIDBCursor> m_backend;
Member<IDBRequest> m_request;
const WebIDBCursorDirection m_direction;
Member<IDBAny> m_source;

Powered by Google App Engine
This is Rietveld 408576698