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

Unified Diff: Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h

Issue 10630009: Merge 120828 - [Chromium] IndexedDB: Don't close database if pending connections are in flight (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h
===================================================================
--- Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h (revision 120957)
+++ Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h (working copy)
@@ -78,6 +78,7 @@
bool openInternal();
void loadObjectStores();
+ int32_t connectionCount();
void processPendingCalls();
static void createObjectStoreInternal(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendImpl>, PassRefPtr<IDBObjectStoreBackendImpl>, PassRefPtr<IDBTransactionBackendInterface>);
@@ -116,6 +117,10 @@
class PendingDeleteCall;
Deque<RefPtr<PendingDeleteCall> > m_pendingDeleteCalls;
+ // FIXME: Eliminate the limbo state between openConnection() and registerFrontendCallbacks()
+ // that this counter tracks.
+ int32_t m_pendingConnectionCount;
+
typedef ListHashSet<RefPtr<IDBDatabaseCallbacks> > DatabaseCallbacksSet;
DatabaseCallbacksSet m_databaseCallbacksSet;
};
« no previous file with comments | « no previous file | Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698