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 25 matching lines...) Expand all Loading... |
36 #include "platform/Logging.h" | 36 #include "platform/Logging.h" |
37 #include "wtf/text/CString.h" | 37 #include "wtf/text/CString.h" |
38 | 38 |
39 | 39 |
40 // The Life-Cycle of a SQLStatement i.e. Who's keeping the SQLStatement alive? | 40 // The Life-Cycle of a SQLStatement i.e. Who's keeping the SQLStatement alive? |
41 // ========================================================================== | 41 // ========================================================================== |
42 // The RefPtr chain goes something like this: | 42 // The RefPtr chain goes something like this: |
43 // | 43 // |
44 // At birth (in SQLTransactionBackend::executeSQL()): | 44 // At birth (in SQLTransactionBackend::executeSQL()): |
45 // ================================================= | 45 // ================================================= |
46 // SQLTransactionBackend // HeapDeque<Member<SQLStatementBackend>
> m_statementQueue points to ... | 46 // SQLTransactionBackend // HeapDeque<Member<SQLStatementBackend>>
m_statementQueue points to ... |
47 // --> SQLStatementBackend // Member<SQLStatement> m_frontend points
to ... | 47 // --> SQLStatementBackend // Member<SQLStatement> m_frontend points
to ... |
48 // --> SQLStatement | 48 // --> SQLStatement |
49 // | 49 // |
50 // After grabbing the statement for execution (in SQLTransactionBackend::get
NextStatement()): | 50 // After grabbing the statement for execution (in SQLTransactionBackend::get
NextStatement()): |
51 // =========================================================================
================ | 51 // =========================================================================
================ |
52 // SQLTransactionBackend // Member<SQLStatementBackend> m_currentS
tatementBackend points to ... | 52 // SQLTransactionBackend // Member<SQLStatementBackend> m_currentS
tatementBackend points to ... |
53 // --> SQLStatementBackend // Member<SQLStatement> m_frontend points
to ... | 53 // --> SQLStatementBackend // Member<SQLStatement> m_frontend points
to ... |
54 // --> SQLStatement | 54 // --> SQLStatement |
55 // | 55 // |
56 // Then we execute the statement in SQLTransactionBackend::runCurrentStateme
ntAndGetNextState(). | 56 // Then we execute the statement in SQLTransactionBackend::runCurrentStateme
ntAndGetNextState(). |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 if (lastExecutionFailedDueToQuota()) | 231 if (lastExecutionFailedDueToQuota()) |
232 m_error = nullptr; | 232 m_error = nullptr; |
233 } | 233 } |
234 | 234 |
235 bool SQLStatementBackend::lastExecutionFailedDueToQuota() const | 235 bool SQLStatementBackend::lastExecutionFailedDueToQuota() const |
236 { | 236 { |
237 return m_error && m_error->code() == SQLError::QUOTA_ERR; | 237 return m_error && m_error->code() == SQLError::QUOTA_ERR; |
238 } | 238 } |
239 | 239 |
240 } // namespace blink | 240 } // namespace blink |
OLD | NEW |