| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 { | 66 { |
| 67 } | 67 } |
| 68 | 68 |
| 69 DatabaseTask::~DatabaseTask() | 69 DatabaseTask::~DatabaseTask() |
| 70 { | 70 { |
| 71 #if !LOG_DISABLED | 71 #if !LOG_DISABLED |
| 72 ASSERT(m_complete || !m_synchronizer); | 72 ASSERT(m_complete || !m_synchronizer); |
| 73 #endif | 73 #endif |
| 74 } | 74 } |
| 75 | 75 |
| 76 void DatabaseTask::performTask() | 76 void DatabaseTask::run() |
| 77 { | 77 { |
| 78 // Database tasks are meant to be used only once, so make sure this one hasn
't been performed before. | 78 // Database tasks are meant to be used only once, so make sure this one hasn
't been performed before. |
| 79 #if !LOG_DISABLED | 79 #if !LOG_DISABLED |
| 80 ASSERT(!m_complete); | 80 ASSERT(!m_complete); |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 LOG(StorageAPI, "Performing %s %p\n", debugTaskName(), this); | 83 LOG(StorageAPI, "Performing %s %p\n", debugTaskName(), this); |
| 84 | 84 |
| 85 m_database->resetAuthorizer(); | 85 m_database->resetAuthorizer(); |
| 86 doPerformTask(); | 86 doPerformTask(); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 194 } |
| 195 | 195 |
| 196 #if !LOG_DISABLED | 196 #if !LOG_DISABLED |
| 197 const char* DatabaseBackend::DatabaseTableNamesTask::debugTaskName() const | 197 const char* DatabaseBackend::DatabaseTableNamesTask::debugTaskName() const |
| 198 { | 198 { |
| 199 return "DatabaseTableNamesTask"; | 199 return "DatabaseTableNamesTask"; |
| 200 } | 200 } |
| 201 #endif | 201 #endif |
| 202 | 202 |
| 203 } // namespace WebCore | 203 } // namespace WebCore |
| OLD | NEW |