This source file includes following definitions.
- nameForSQLTransactionState
#include "config.h"
#include "modules/webdatabase/SQLTransactionStateMachine.h"
#include "platform/Logging.h"
#include "wtf/Assertions.h"
namespace WebCore {
#if !LOG_DISABLED
const char* nameForSQLTransactionState(SQLTransactionState state)
{
switch (state) {
case SQLTransactionState::End:
return "end";
case SQLTransactionState::Idle:
return "idle";
case SQLTransactionState::AcquireLock:
return "acquireLock";
case SQLTransactionState::OpenTransactionAndPreflight:
return "openTransactionAndPreflight";
case SQLTransactionState::RunStatements:
return "runStatements";
case SQLTransactionState::PostflightAndCommit:
return "postflightAndCommit";
case SQLTransactionState::CleanupAndTerminate:
return "cleanupAndTerminate";
case SQLTransactionState::CleanupAfterTransactionErrorCallback:
return "cleanupAfterTransactionErrorCallback";
case SQLTransactionState::DeliverTransactionCallback:
return "deliverTransactionCallback";
case SQLTransactionState::DeliverTransactionErrorCallback:
return "deliverTransactionErrorCallback";
case SQLTransactionState::DeliverStatementCallback:
return "deliverStatementCallback";
case SQLTransactionState::DeliverQuotaIncreaseCallback:
return "deliverQuotaIncreaseCallback";
case SQLTransactionState::DeliverSuccessCallback:
return "deliverSuccessCallback";
default:
return "UNKNOWN";
}
}
#endif
}