| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class DatabaseTask : public WebThread::Task { | 49 class DatabaseTask : public WebThread::Task { |
| 50 WTF_MAKE_NONCOPYABLE(DatabaseTask); WTF_MAKE_FAST_ALLOCATED; | 50 WTF_MAKE_NONCOPYABLE(DatabaseTask); WTF_MAKE_FAST_ALLOCATED; |
| 51 public: | 51 public: |
| 52 virtual ~DatabaseTask(); | 52 virtual ~DatabaseTask(); |
| 53 | 53 |
| 54 virtual void run() OVERRIDE FINAL; | 54 virtual void run() OVERRIDE FINAL; |
| 55 | 55 |
| 56 DatabaseBackend* database() const { return m_database.get(); } | 56 DatabaseBackend* database() const { return m_database.get(); } |
| 57 #if ENABLE(ASSERT) | 57 #if ENABLE(ASSERT) |
| 58 bool hasSynchronizer() const { return m_synchronizer; } | 58 bool hasSynchronizer() const { return m_synchronizer; } |
| 59 bool hasCheckedForTermination() const { return m_synchronizer->hasCheckedFor
Termination(); } | |
| 60 #endif | 59 #endif |
| 61 | 60 |
| 62 protected: | 61 protected: |
| 63 DatabaseTask(DatabaseBackend*, TaskSynchronizer*); | 62 DatabaseTask(DatabaseBackend*, TaskSynchronizer*); |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 virtual void doPerformTask() = 0; | 65 virtual void doPerformTask() = 0; |
| 67 virtual void taskCancelled() { } | 66 virtual void taskCancelled() { } |
| 68 | 67 |
| 69 RefPtrWillBeCrossThreadPersistent<DatabaseBackend> m_database; | 68 RefPtrWillBeCrossThreadPersistent<DatabaseBackend> m_database; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 #if !LOG_DISABLED | 149 #if !LOG_DISABLED |
| 151 virtual const char* debugTaskName() const OVERRIDE; | 150 virtual const char* debugTaskName() const OVERRIDE; |
| 152 #endif | 151 #endif |
| 153 | 152 |
| 154 Vector<String>& m_tableNames; | 153 Vector<String>& m_tableNames; |
| 155 }; | 154 }; |
| 156 | 155 |
| 157 } // namespace blink | 156 } // namespace blink |
| 158 | 157 |
| 159 #endif // DatabaseTask_h | 158 #endif // DatabaseTask_h |
| OLD | NEW |