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> | |
39 | 38 |
40 namespace blink { | 39 namespace blink { |
41 | 40 |
42 class Database; | 41 class Database; |
43 class ExceptionState; | 42 class ExceptionState; |
44 class SQLErrorData; | 43 class SQLErrorData; |
45 class SQLStatementCallback; | 44 class SQLStatementCallback; |
46 class SQLStatementErrorCallback; | 45 class SQLStatementErrorCallback; |
47 class SQLTransactionBackend; | 46 class SQLTransactionBackend; |
48 class SQLTransactionCallback; | 47 class SQLTransactionCallback; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 103 |
105 SQLTransactionState nextStateForTransactionError(); | 104 SQLTransactionState nextStateForTransactionError(); |
106 | 105 |
107 Member<Database> m_database; | 106 Member<Database> m_database; |
108 Member<SQLTransactionBackend> m_backend; | 107 Member<SQLTransactionBackend> m_backend; |
109 Member<SQLTransactionCallback> m_callback; | 108 Member<SQLTransactionCallback> m_callback; |
110 Member<VoidCallback> m_successCallback; | 109 Member<VoidCallback> m_successCallback; |
111 Member<SQLTransactionErrorCallback> m_errorCallback; | 110 Member<SQLTransactionErrorCallback> m_errorCallback; |
112 | 111 |
113 bool m_executeSqlAllowed; | 112 bool m_executeSqlAllowed; |
114 std::unique_ptr<SQLErrorData> m_transactionError; | 113 OwnPtr<SQLErrorData> m_transactionError; |
115 | 114 |
116 bool m_readOnly; | 115 bool m_readOnly; |
117 }; | 116 }; |
118 | 117 |
119 } // namespace blink | 118 } // namespace blink |
120 | 119 |
121 #endif // SQLTransaction_h | 120 #endif // SQLTransaction_h |
OLD | NEW |