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

Unified Diff: Source/modules/indexeddb/IDBDatabase.h

Issue 78053006: [oilpan] Move IDBDatabase, IDBDatabaseCallbacks, IDBDatabaseBackendInterface and other related clas… (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years 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
« no previous file with comments | « Source/modules/indexeddb/IDBCursorBackendInterface.h ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBDatabase.h
diff --git a/Source/modules/indexeddb/IDBDatabase.h b/Source/modules/indexeddb/IDBDatabase.h
index 38d865d24bbf4d55f3cce94040ca6c3ca7c22c4b..ef548c756b5336641bfeda5aba54504a5540b647 100644
--- a/Source/modules/indexeddb/IDBDatabase.h
+++ b/Source/modules/indexeddb/IDBDatabase.h
@@ -51,10 +51,10 @@ class IDBDatabase : public RefCountedHeapAllocated<IDBDatabase>, public ScriptWr
DECLARE_GC_INFO
DEFINE_SELF_HANDLE(IDBDatabase)
public:
- static PassRefPtr<IDBDatabase> create(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendInterface>, PassRefPtr<IDBDatabaseCallbacks>);
+ static IDBDatabase* create(ScriptExecutionContext*, IDBDatabaseBackendInterface*, IDBDatabaseCallbacks*);
~IDBDatabase();
- virtual void trace(Visitor*) { }
+ virtual void trace(Visitor*);
virtual void visitWith(Visitor* visitor) const OVERRIDE
{
@@ -111,7 +111,7 @@ public:
return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId;
}
- IDBDatabaseBackendInterface* backend() const { return m_backend.get(); }
+ IDBDatabaseBackendInterface* backend() const { return m_backend; }
static int64_t nextTransactionId();
@@ -119,7 +119,7 @@ public:
using RefCountedHeapAllocated<IDBDatabase>::deref;
private:
- IDBDatabase(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendInterface>, PassRefPtr<IDBDatabaseCallbacks>);
+ IDBDatabase(ScriptExecutionContext*, IDBDatabaseBackendInterface*, IDBDatabaseCallbacks*);
// EventTarget
virtual EventTargetData* eventTargetData();
@@ -128,7 +128,7 @@ private:
void closeConnection();
IDBDatabaseMetadata m_metadata;
- RefPtr<IDBDatabaseBackendInterface> m_backend;
+ Member<IDBDatabaseBackendInterface> m_backend;
RefPtr<IDBTransaction> m_versionChangeTransaction;
typedef HashMap<int64_t, RefPtr<IDBTransaction> > TransactionMap;
TransactionMap m_transactions;
@@ -142,7 +142,7 @@ private:
// database so that we can cancel them if the database closes.
Vector<RefPtr<Event> > m_enqueuedEvents;
- RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks;
+ Member<IDBDatabaseCallbacks> m_databaseCallbacks;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/indexeddb/IDBCursorBackendInterface.h ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698