| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 DECLARE_TRACE(); | 62 DECLARE_TRACE(); |
| 63 | 63 |
| 64 void performPendingCallback(); | 64 void performPendingCallback(); |
| 65 | 65 |
| 66 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument
s, | 66 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument
s, |
| 67 SQLStatementCallback*, SQLStatementErrorCallback*, ExceptionState&); | 67 SQLStatementCallback*, SQLStatementErrorCallback*, ExceptionState&); |
| 68 void executeSql(ScriptState*, const String& sqlStatement, ExceptionState&); | 68 void executeSql(ScriptState*, const String& sqlStatement, ExceptionState&); |
| 69 void executeSql(ScriptState*, const String& sqlStatement, const Nullable<Vec
tor<ScriptValue>>& arguments, | 69 void executeSql(ScriptState*, const String& sqlStatement, const Nullable<Vec
tor<ScriptValue>>& arguments, |
| 70 SQLStatementCallback*, SQLStatementErrorCallback*, ExceptionState&); | 70 SQLStatementCallback*, SQLStatementErrorCallback*, ExceptionState&); |
| 71 | 71 |
| 72 Database* database() const; | 72 Database* database() { return m_database.get(); } |
| 73 | 73 |
| 74 SQLTransactionErrorCallback* releaseErrorCallback(); | 74 SQLTransactionErrorCallback* releaseErrorCallback(); |
| 75 | 75 |
| 76 // APIs called from the backend published: | 76 // APIs called from the backend published: |
| 77 void requestTransitToState(SQLTransactionState); | 77 void requestTransitToState(SQLTransactionState); |
| 78 bool hasCallback() const; | 78 bool hasCallback() const; |
| 79 bool hasSuccessCallback() const; | 79 bool hasSuccessCallback() const; |
| 80 bool hasErrorCallback() const; | 80 bool hasErrorCallback() const; |
| 81 void setBackend(SQLTransactionBackend*); | 81 void setBackend(SQLTransactionBackend*); |
| 82 | 82 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 112 bool m_executeSqlAllowed; | 112 bool m_executeSqlAllowed; |
| 113 OwnPtr<SQLErrorData> m_transactionError; | 113 OwnPtr<SQLErrorData> m_transactionError; |
| 114 | 114 |
| 115 bool m_readOnly; | 115 bool m_readOnly; |
| 116 int m_asyncOperationId; | 116 int m_asyncOperationId; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // SQLTransaction_h | 121 #endif // SQLTransaction_h |
| OLD | NEW |