void DatabaseContext::didCloseDatabase(DatabaseBackendBase& database) { if (!database.isSyncDatabase()) return; ASSERT(isContextThread()); m_openSyncDatabases.remove(&database); }
void DatabaseContext::didOpenDatabase(DatabaseBackendBase& database) { if (!database.isSyncDatabase()) return; ASSERT(isContextThread()); m_openSyncDatabases.add(&database); }
void DatabaseContext::didCloseDatabase(DatabaseBackendBase& database) { #if !ENABLE(OILPAN) if (!database.isSyncDatabase()) return; ASSERT(isContextThread()); m_openSyncDatabases.remove(&database); #endif }
void DatabaseContext::didOpenDatabase(DatabaseBackendBase& database) { if (!database.isSyncDatabase()) return; ASSERT(isContextThread()); #if ENABLE(OILPAN) m_openSyncDatabases.add(&database, adoptPtr(new DatabaseCloser(database))); #else m_openSyncDatabases.add(&database); #endif }