| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool execute(DatabaseBackend*); | 51 bool execute(DatabaseBackend*); |
| 52 bool lastExecutionFailedDueToQuota() const; | 52 bool lastExecutionFailedDueToQuota() const; |
| 53 | 53 |
| 54 bool hasStatementCallback() const { return m_hasCallback; } | 54 bool hasStatementCallback() const { return m_hasCallback; } |
| 55 bool hasStatementErrorCallback() const { return m_hasErrorCallback; } | 55 bool hasStatementErrorCallback() const { return m_hasErrorCallback; } |
| 56 | 56 |
| 57 void setVersionMismatchedError(DatabaseBackend*); | 57 void setVersionMismatchedError(DatabaseBackend*); |
| 58 | 58 |
| 59 AbstractSQLStatement* frontend(); | 59 AbstractSQLStatement* frontend(); |
| 60 virtual PassRefPtr<SQLError> sqlError() const OVERRIDE; | 60 virtual PassRefPtr<SQLError> sqlError() const OVERRIDE; |
| 61 virtual PassRefPtr<SQLResultSet> sqlResultSet() const OVERRIDE; | 61 virtual SQLResultSet* sqlResultSet() const OVERRIDE; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 SQLStatementBackend(PassOwnPtr<AbstractSQLStatement>, const String& statemen
t, | 64 SQLStatementBackend(PassOwnPtr<AbstractSQLStatement>, const String& statemen
t, |
| 65 const Vector<SQLValue>& arguments, int permissions); | 65 const Vector<SQLValue>& arguments, int permissions); |
| 66 | 66 |
| 67 void setFailureDueToQuota(DatabaseBackend*); | 67 void setFailureDueToQuota(DatabaseBackend*); |
| 68 void clearFailureDueToQuota(); | 68 void clearFailureDueToQuota(); |
| 69 | 69 |
| 70 OwnPtr<AbstractSQLStatement> m_frontend; | 70 OwnPtr<AbstractSQLStatement> m_frontend; |
| 71 String m_statement; | 71 String m_statement; |
| 72 Vector<SQLValue> m_arguments; | 72 Vector<SQLValue> m_arguments; |
| 73 bool m_hasCallback; | 73 bool m_hasCallback; |
| 74 bool m_hasErrorCallback; | 74 bool m_hasErrorCallback; |
| 75 | 75 |
| 76 RefPtr<SQLError> m_error; | 76 RefPtr<SQLError> m_error; |
| 77 RefPtr<SQLResultSet> m_resultSet; | 77 RefPtrWillBeMember<SQLResultSet> m_resultSet; |
| 78 | 78 |
| 79 int m_permissions; | 79 int m_permissions; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace WebCore | 82 } // namespace WebCore |
| 83 | 83 |
| 84 #endif // SQLStatementBackend_h | 84 #endif // SQLStatementBackend_h |
| OLD | NEW |