IDBTransaction* IDBTransaction::create(ScriptState* scriptState, int64_t id, const HashSet<String>& objectStoreNames, WebIDBTransactionMode mode, IDBDatabase* db)
{
    IDBOpenDBRequest* openDBRequest = nullptr;
    IDBTransaction* transaction = new IDBTransaction(scriptState, id, objectStoreNames, mode, db, openDBRequest, IDBDatabaseMetadata());
    transaction->suspendIfNeeded();
    return transaction;
}
Beispiel #2
0
IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, const Vector<String>& objectStoreNames, WebIDBDatabase::TransactionMode mode, IDBDatabase* db)
{
    IDBOpenDBRequest* openDBRequest = 0;
    IDBTransaction* transaction = adoptRefCountedGarbageCollected(new IDBTransaction(context, id, objectStoreNames, mode, db, openDBRequest, IDBDatabaseMetadata()));
    transaction->suspendIfNeeded();
    return transaction;
}
Beispiel #3
0
IDBTransaction* IDBTransaction::createVersionChange(
    ExecutionContext* executionContext,
    int64_t id,
    IDBDatabase* db,
    IDBOpenDBRequest* openDBRequest,
    const IDBDatabaseMetadata& oldMetadata) {
  IDBTransaction* transaction =
      new IDBTransaction(executionContext, id, db, openDBRequest, oldMetadata);
  transaction->suspendIfNeeded();
  return transaction;
}
Beispiel #4
0
IDBTransaction* IDBTransaction::createNonVersionChange(
    ScriptState* scriptState,
    int64_t id,
    const HashSet<String>& scope,
    WebIDBTransactionMode mode,
    IDBDatabase* db) {
  DCHECK_NE(mode, WebIDBTransactionModeVersionChange);
  DCHECK(!scope.isEmpty()) << "Non-version transactions should operate on a "
                              "well-defined set of stores";
  IDBTransaction* transaction =
      new IDBTransaction(scriptState, id, scope, mode, db);
  transaction->suspendIfNeeded();
  return transaction;
}
IDBTransaction* IDBTransaction::create(ScriptState* scriptState, int64_t id, IDBDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata)
{
    IDBTransaction* transaction = new IDBTransaction(scriptState, id, HashSet<String>(), WebIDBTransactionModeVersionChange, db, openDBRequest, previousMetadata);
    transaction->suspendIfNeeded();
    return transaction;
}
Beispiel #6
0
IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, IDBDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata)
{
    IDBTransaction* transaction = adoptRefCountedGarbageCollected(new IDBTransaction(context, id, Vector<String>(), WebIDBDatabase::TransactionVersionChange, db, openDBRequest, previousMetadata));
    transaction->suspendIfNeeded();
    return transaction;
}