| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "modules/webdatabase/SQLTransactionStateMachine.h" | 27 #include "modules/webdatabase/SQLTransactionStateMachine.h" |
| 28 | 28 |
| 29 #include "platform/Logging.h" | 29 #include "platform/Logging.h" |
| 30 #include "wtf/Assertions.h" | 30 #include "wtf/Assertions.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace blink { |
| 33 | 33 |
| 34 #if !LOG_DISABLED | 34 #if !LOG_DISABLED |
| 35 const char* nameForSQLTransactionState(SQLTransactionState state) | 35 const char* nameForSQLTransactionState(SQLTransactionState state) |
| 36 { | 36 { |
| 37 switch (state) { | 37 switch (state) { |
| 38 case SQLTransactionState::End: | 38 case SQLTransactionState::End: |
| 39 return "end"; | 39 return "end"; |
| 40 case SQLTransactionState::Idle: | 40 case SQLTransactionState::Idle: |
| 41 return "idle"; | 41 return "idle"; |
| 42 case SQLTransactionState::AcquireLock: | 42 case SQLTransactionState::AcquireLock: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 60 case SQLTransactionState::DeliverQuotaIncreaseCallback: | 60 case SQLTransactionState::DeliverQuotaIncreaseCallback: |
| 61 return "deliverQuotaIncreaseCallback"; | 61 return "deliverQuotaIncreaseCallback"; |
| 62 case SQLTransactionState::DeliverSuccessCallback: | 62 case SQLTransactionState::DeliverSuccessCallback: |
| 63 return "deliverSuccessCallback"; | 63 return "deliverSuccessCallback"; |
| 64 default: | 64 default: |
| 65 return "UNKNOWN"; | 65 return "UNKNOWN"; |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 } // namespace WebCore | 70 } // namespace blink |
| OLD | NEW |