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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 bool callbackError = false; | 84 bool callbackError = false; |
85 | 85 |
86 SQLStatementCallback* callback = m_statementCallback.release(); | 86 SQLStatementCallback* callback = m_statementCallback.release(); |
87 SQLStatementErrorCallback* errorCallback = m_statementErrorCallback.release(); | 87 SQLStatementErrorCallback* errorCallback = m_statementErrorCallback.release(); |
88 SQLErrorData* error = m_backend->sqlError(); | 88 SQLErrorData* error = m_backend->sqlError(); |
89 | 89 |
90 InspectorInstrumentation::AsyncTask asyncTask( | 90 InspectorInstrumentation::AsyncTask asyncTask( |
91 transaction->database()->getExecutionContext(), this); | 91 transaction->database()->getExecutionContext(), this); |
92 | 92 |
93 // Call the appropriate statement callback and track if it resulted in an erro
r, | 93 // Call the appropriate statement callback and track if it resulted in an |
94 // because then we need to jump to the transaction error callback. | 94 // error, because then we need to jump to the transaction error callback. |
95 if (error) { | 95 if (error) { |
96 if (errorCallback) | 96 if (errorCallback) |
97 callbackError = | 97 callbackError = |
98 errorCallback->handleEvent(transaction, SQLError::create(*error)); | 98 errorCallback->handleEvent(transaction, SQLError::create(*error)); |
99 } else if (callback) { | 99 } else if (callback) { |
100 callbackError = | 100 callbackError = |
101 !callback->handleEvent(transaction, m_backend->sqlResultSet()); | 101 !callback->handleEvent(transaction, m_backend->sqlResultSet()); |
102 } | 102 } |
103 | 103 |
104 return callbackError; | 104 return callbackError; |
105 } | 105 } |
106 | 106 |
107 } // namespace blink | 107 } // namespace blink |
OLD | NEW |