| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #ifndef SQLTransaction_h | 29 #ifndef SQLTransaction_h |
| 30 #define SQLTransaction_h | 30 #define SQLTransaction_h |
| 31 | 31 |
| 32 #include "bindings/core/v8/Nullable.h" | 32 #include "bindings/core/v8/Nullable.h" |
| 33 #include "bindings/core/v8/ScriptWrappable.h" | 33 #include "bindings/core/v8/ScriptWrappable.h" |
| 34 #include "bindings/modules/v8/V8BindingForModules.h" | 34 #include "bindings/modules/v8/V8BindingForModules.h" |
| 35 #include "modules/webdatabase/SQLStatement.h" | 35 #include "modules/webdatabase/SQLStatement.h" |
| 36 #include "modules/webdatabase/SQLTransactionStateMachine.h" | 36 #include "modules/webdatabase/SQLTransactionStateMachine.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include <memory> |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class Database; | 42 class Database; |
| 42 class ExceptionState; | 43 class ExceptionState; |
| 43 class SQLErrorData; | 44 class SQLErrorData; |
| 44 class SQLStatementCallback; | 45 class SQLStatementCallback; |
| 45 class SQLStatementErrorCallback; | 46 class SQLStatementErrorCallback; |
| 46 class SQLTransactionBackend; | 47 class SQLTransactionBackend; |
| 47 class SQLTransactionCallback; | 48 class SQLTransactionCallback; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 SQLTransactionState nextStateForTransactionError(); | 105 SQLTransactionState nextStateForTransactionError(); |
| 105 | 106 |
| 106 Member<Database> m_database; | 107 Member<Database> m_database; |
| 107 Member<SQLTransactionBackend> m_backend; | 108 Member<SQLTransactionBackend> m_backend; |
| 108 Member<SQLTransactionCallback> m_callback; | 109 Member<SQLTransactionCallback> m_callback; |
| 109 Member<VoidCallback> m_successCallback; | 110 Member<VoidCallback> m_successCallback; |
| 110 Member<SQLTransactionErrorCallback> m_errorCallback; | 111 Member<SQLTransactionErrorCallback> m_errorCallback; |
| 111 | 112 |
| 112 bool m_executeSqlAllowed; | 113 bool m_executeSqlAllowed; |
| 113 OwnPtr<SQLErrorData> m_transactionError; | 114 std::unique_ptr<SQLErrorData> m_transactionError; |
| 114 | 115 |
| 115 bool m_readOnly; | 116 bool m_readOnly; |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } // namespace blink | 119 } // namespace blink |
| 119 | 120 |
| 120 #endif // SQLTransaction_h | 121 #endif // SQLTransaction_h |
| OLD | NEW |