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 void setupDatabaseThread(); | 71 void setupDatabaseThread(); |
72 void cleanupDatabaseThread(); | 72 void cleanupDatabaseThread(); |
73 void cleanupDatabaseThreadCompleted(); | 73 void cleanupDatabaseThreadCompleted(); |
74 | 74 |
75 OwnPtr<WebThreadSupportingGC> m_thread; | 75 OwnPtr<WebThreadSupportingGC> m_thread; |
76 | 76 |
77 // This set keeps track of the open databases that have been used on this th
read. | 77 // This set keeps track of the open databases that have been used on this th
read. |
78 // This must be updated in the database thread though it is constructed and | 78 // This must be updated in the database thread though it is constructed and |
79 // destructed in the context thread. | 79 // destructed in the context thread. |
80 HeapHashSet<Member<Database>> m_openDatabaseSet; | 80 HashSet<CrossThreadPersistent<Database>> m_openDatabaseSet; |
81 | 81 |
82 OwnPtr<SQLTransactionClient> m_transactionClient; | 82 OwnPtr<SQLTransactionClient> m_transactionClient; |
83 Member<SQLTransactionCoordinator> m_transactionCoordinator; | 83 CrossThreadPersistent<SQLTransactionCoordinator> m_transactionCoordinator; |
84 TaskSynchronizer* m_cleanupSync; | 84 TaskSynchronizer* m_cleanupSync; |
85 | 85 |
86 Mutex m_terminationRequestedMutex; | 86 Mutex m_terminationRequestedMutex; |
87 bool m_terminationRequested; | 87 bool m_terminationRequested; |
88 }; | 88 }; |
89 | 89 |
90 } // namespace blink | 90 } // namespace blink |
91 | 91 |
92 #endif // DatabaseThread_h | 92 #endif // DatabaseThread_h |
OLD | NEW |