| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 DatabaseThread(); | 72 DatabaseThread(); |
| 73 | 73 |
| 74 void setupDatabaseThread(); | 74 void setupDatabaseThread(); |
| 75 void cleanupDatabaseThread(); | 75 void cleanupDatabaseThread(); |
| 76 void cleanupDatabaseThreadCompleted(); | 76 void cleanupDatabaseThreadCompleted(); |
| 77 | 77 |
| 78 std::unique_ptr<WebThreadSupportingGC> m_thread; | 78 std::unique_ptr<WebThreadSupportingGC> m_thread; |
| 79 | 79 |
| 80 // This set keeps track of the open databases that have been used on this thre
ad. | 80 // This set keeps track of the open databases that have been used on this |
| 81 // This must be updated in the database thread though it is constructed and | 81 // thread. This must be updated in the database thread though it is |
| 82 // destructed in the context thread. | 82 // constructed and destructed in the context thread. |
| 83 HashSet<CrossThreadPersistent<Database>> m_openDatabaseSet; | 83 HashSet<CrossThreadPersistent<Database>> m_openDatabaseSet; |
| 84 | 84 |
| 85 std::unique_ptr<SQLTransactionClient> m_transactionClient; | 85 std::unique_ptr<SQLTransactionClient> m_transactionClient; |
| 86 CrossThreadPersistent<SQLTransactionCoordinator> m_transactionCoordinator; | 86 CrossThreadPersistent<SQLTransactionCoordinator> m_transactionCoordinator; |
| 87 WaitableEvent* m_cleanupSync; | 87 WaitableEvent* m_cleanupSync; |
| 88 | 88 |
| 89 Mutex m_terminationRequestedMutex; | 89 Mutex m_terminationRequestedMutex; |
| 90 bool m_terminationRequested; | 90 bool m_terminationRequested; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // DatabaseThread_h | 95 #endif // DatabaseThread_h |
| OLD | NEW |