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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "modules/webdatabase/Database.h" | 32 #include "modules/webdatabase/Database.h" |
33 #include "modules/webdatabase/DatabaseTask.h" | 33 #include "modules/webdatabase/DatabaseTask.h" |
34 #include "modules/webdatabase/SQLTransactionClient.h" | 34 #include "modules/webdatabase/SQLTransactionClient.h" |
35 #include "modules/webdatabase/SQLTransactionCoordinator.h" | 35 #include "modules/webdatabase/SQLTransactionCoordinator.h" |
36 #include "platform/Logging.h" | 36 #include "platform/Logging.h" |
37 #include "platform/heap/glue/MessageLoopInterruptor.h" | 37 #include "platform/heap/glue/MessageLoopInterruptor.h" |
38 #include "platform/heap/glue/PendingGCRunner.h" | 38 #include "platform/heap/glue/PendingGCRunner.h" |
39 #include "public/platform/Platform.h" | 39 #include "public/platform/Platform.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 DatabaseThread::DatabaseThread() | 43 DatabaseThread::DatabaseThread() |
44 : m_transactionClient(adoptPtr(new SQLTransactionClient())) | 44 : m_transactionClient(adoptPtr(new SQLTransactionClient())) |
45 , m_transactionCoordinator(adoptPtrWillBeNoop(new SQLTransactionCoordinator(
))) | 45 , m_transactionCoordinator(adoptPtrWillBeNoop(new SQLTransactionCoordinator(
))) |
46 , m_cleanupSync(0) | 46 , m_cleanupSync(0) |
47 , m_terminationRequested(false) | 47 , m_terminationRequested(false) |
48 { | 48 { |
49 } | 49 } |
50 | 50 |
51 DatabaseThread::~DatabaseThread() | 51 DatabaseThread::~DatabaseThread() |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 164 } |
165 | 165 |
166 void DatabaseThread::scheduleTask(PassOwnPtr<DatabaseTask> task) | 166 void DatabaseThread::scheduleTask(PassOwnPtr<DatabaseTask> task) |
167 { | 167 { |
168 ASSERT(m_thread); | 168 ASSERT(m_thread); |
169 ASSERT(!task->hasSynchronizer() || task->hasCheckedForTermination()); | 169 ASSERT(!task->hasSynchronizer() || task->hasCheckedForTermination()); |
170 // WebThread takes ownership of the task. | 170 // WebThread takes ownership of the task. |
171 m_thread->postTask(task.leakPtr()); | 171 m_thread->postTask(task.leakPtr()); |
172 } | 172 } |
173 | 173 |
174 } // namespace WebCore | 174 } // namespace blink |
OLD | NEW |