| 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 15 matching lines...) Expand all Loading... |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 #ifndef SQLStatementBackend_h | 28 #ifndef SQLStatementBackend_h |
| 29 #define SQLStatementBackend_h | 29 #define SQLStatementBackend_h |
| 30 | 30 |
| 31 #include "modules/webdatabase/sqlite/SQLValue.h" | 31 #include "modules/webdatabase/sqlite/SQLValue.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/Forward.h" | 33 #include "wtf/Forward.h" |
| 34 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
| 35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
| 36 #include <memory> |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 class Database; | 40 class Database; |
| 40 class SQLErrorData; | 41 class SQLErrorData; |
| 41 class SQLResultSet; | 42 class SQLResultSet; |
| 42 class SQLStatement; | 43 class SQLStatement; |
| 43 | 44 |
| 44 class SQLStatementBackend final : public GarbageCollectedFinalized<SQLStatementB
ackend> { | 45 class SQLStatementBackend final : public GarbageCollectedFinalized<SQLStatementB
ackend> { |
| 45 public: | 46 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 64 | 65 |
| 65 void setFailureDueToQuota(Database*); | 66 void setFailureDueToQuota(Database*); |
| 66 void clearFailureDueToQuota(); | 67 void clearFailureDueToQuota(); |
| 67 | 68 |
| 68 Member<SQLStatement> m_frontend; | 69 Member<SQLStatement> m_frontend; |
| 69 String m_statement; | 70 String m_statement; |
| 70 Vector<SQLValue> m_arguments; | 71 Vector<SQLValue> m_arguments; |
| 71 bool m_hasCallback; | 72 bool m_hasCallback; |
| 72 bool m_hasErrorCallback; | 73 bool m_hasErrorCallback; |
| 73 | 74 |
| 74 OwnPtr<SQLErrorData> m_error; | 75 std::unique_ptr<SQLErrorData> m_error; |
| 75 Member<SQLResultSet> m_resultSet; | 76 Member<SQLResultSet> m_resultSet; |
| 76 | 77 |
| 77 int m_permissions; | 78 int m_permissions; |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace blink | 81 } // namespace blink |
| 81 | 82 |
| 82 #endif // SQLStatementBackend_h | 83 #endif // SQLStatementBackend_h |
| OLD | NEW |