| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 DEFINE_INLINE_VIRTUAL_TRACE() { SQLTransactionCallback::trace(visitor); } | 171 DEFINE_INLINE_VIRTUAL_TRACE() { SQLTransactionCallback::trace(visitor); } |
| 172 | 172 |
| 173 bool handleEvent(SQLTransaction* transaction) override { | 173 bool handleEvent(SQLTransaction* transaction) override { |
| 174 Vector<SQLValue> sqlValues; | 174 Vector<SQLValue> sqlValues; |
| 175 SQLStatementCallback* callback = | 175 SQLStatementCallback* callback = |
| 176 StatementCallback::create(m_requestCallback); | 176 StatementCallback::create(m_requestCallback); |
| 177 SQLStatementErrorCallback* errorCallback = | 177 SQLStatementErrorCallback* errorCallback = |
| 178 StatementErrorCallback::create(m_requestCallback); | 178 StatementErrorCallback::create(m_requestCallback); |
| 179 transaction->executeSQL(m_sqlStatement, sqlValues, callback, errorCallback, | 179 transaction->executeSQL(m_sqlStatement, sqlValues, callback, errorCallback, |
| 180 IGNORE_EXCEPTION); | 180 IGNORE_EXCEPTION_FOR_TESTING); |
| 181 return true; | 181 return true; |
| 182 } | 182 } |
| 183 | 183 |
| 184 private: | 184 private: |
| 185 TransactionCallback(const String& sqlStatement, | 185 TransactionCallback(const String& sqlStatement, |
| 186 PassRefPtr<ExecuteSQLCallbackWrapper> requestCallback) | 186 PassRefPtr<ExecuteSQLCallbackWrapper> requestCallback) |
| 187 : m_sqlStatement(sqlStatement), m_requestCallback(requestCallback) {} | 187 : m_sqlStatement(sqlStatement), m_requestCallback(requestCallback) {} |
| 188 String m_sqlStatement; | 188 String m_sqlStatement; |
| 189 RefPtr<ExecuteSQLCallbackWrapper> m_requestCallback; | 189 RefPtr<ExecuteSQLCallbackWrapper> m_requestCallback; |
| 190 }; | 190 }; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 return it->value->database(); | 361 return it->value->database(); |
| 362 } | 362 } |
| 363 | 363 |
| 364 DEFINE_TRACE(InspectorDatabaseAgent) { | 364 DEFINE_TRACE(InspectorDatabaseAgent) { |
| 365 visitor->trace(m_page); | 365 visitor->trace(m_page); |
| 366 visitor->trace(m_resources); | 366 visitor->trace(m_resources); |
| 367 InspectorBaseAgent::trace(visitor); | 367 InspectorBaseAgent::trace(visitor); |
| 368 } | 368 } |
| 369 | 369 |
| 370 } // namespace blink | 370 } // namespace blink |
| OLD | NEW |