| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback, | 57 SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback, |
| 58 VoidCallback* successCallback, SQLTransactionErrorCallback* errorCallback, | 58 VoidCallback* successCallback, SQLTransactionErrorCallback* errorCallback, |
| 59 bool readOnly) | 59 bool readOnly) |
| 60 : m_database(db) | 60 : m_database(db) |
| 61 , m_callback(callback) | 61 , m_callback(callback) |
| 62 , m_successCallback(successCallback) | 62 , m_successCallback(successCallback) |
| 63 , m_errorCallback(errorCallback) | 63 , m_errorCallback(errorCallback) |
| 64 , m_executeSqlAllowed(false) | 64 , m_executeSqlAllowed(false) |
| 65 , m_readOnly(readOnly) | 65 , m_readOnly(readOnly) |
| 66 { | 66 { |
| 67 DCHECK(isMainThread()); |
| 67 ASSERT(m_database); | 68 ASSERT(m_database); |
| 68 InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQL
Transaction", this, true); | 69 InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQL
Transaction", this, true); |
| 69 } | 70 } |
| 70 | 71 |
| 71 SQLTransaction::~SQLTransaction() | 72 SQLTransaction::~SQLTransaction() |
| 72 { | 73 { |
| 73 } | 74 } |
| 74 | 75 |
| 75 DEFINE_TRACE(SQLTransaction) | 76 DEFINE_TRACE(SQLTransaction) |
| 76 { | 77 { |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 m_successCallback.clear(); | 332 m_successCallback.clear(); |
| 332 m_errorCallback.clear(); | 333 m_errorCallback.clear(); |
| 333 } | 334 } |
| 334 | 335 |
| 335 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback() | 336 SQLTransactionErrorCallback* SQLTransaction::releaseErrorCallback() |
| 336 { | 337 { |
| 337 return m_errorCallback.release(); | 338 return m_errorCallback.release(); |
| 338 } | 339 } |
| 339 | 340 |
| 340 } // namespace blink | 341 } // namespace blink |
| OLD | NEW |