Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseThread.h

Issue 1909813002: Enable per thread heap for database thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698