Exemple #1
0
void DatabaseContext::didCloseDatabase(DatabaseBackendBase& database)
{
    if (!database.isSyncDatabase())
        return;
    ASSERT(isContextThread());
    m_openSyncDatabases.remove(&database);
}
Exemple #2
0
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
}