summaryrefslogtreecommitdiffstats
path: root/content/common/indexed_db
diff options
context:
space:
mode:
authorjsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-26 23:24:53 +0000
committerjsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-26 23:24:53 +0000
commitdedef4209cdb902a4a91ad53d4d1e68124956123 (patch)
treeda5dbd420693bd84a9f111a1b6b7710c7a60cd49 /content/common/indexed_db
parent15cc6bedb9143afb15db0e6d5435a60244467b62 (diff)
downloadchromium_src-dedef4209cdb902a4a91ad53d4d1e68124956123.zip
chromium_src-dedef4209cdb902a4a91ad53d4d1e68124956123.tar.gz
chromium_src-dedef4209cdb902a4a91ad53d4d1e68124956123.tar.bz2
IndexedDB: Don't leak database proxy objects
If a connection is after OnUpgradeNeeded it is removed from a map and when the OnSuccess comes through a new WebIDBDatabase object is minted but ignored by the blink side. This leads to a leak, which was turned up by http://crrev.com/67463006 which starts asserting that a new object is not in a success following an upgrade. Push the change from r237142 back into the browser side of things, and don't even send an ID across. R=alecflett@chromium.org TBR=darin@chromium.org BUG=234277 Review URL: https://codereview.chromium.org/86773002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/indexed_db')
-rw-r--r--content/common/indexed_db/indexed_db_constants.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/common/indexed_db/indexed_db_constants.h b/content/common/indexed_db/indexed_db_constants.h
new file mode 100644
index 0000000..5c7377b
--- /dev/null
+++ b/content/common/indexed_db/indexed_db_constants.h
@@ -0,0 +1,14 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
+#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
+
+namespace content {
+
+const int32 kNoDatabase = -1;
+
+} // namespace content
+
+#endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_