summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authorjsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 16:53:14 +0000
committerjsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 16:53:14 +0000
commitd29efa8261b6b0472ea262dadc48a2808f7fdf39 (patch)
tree3d06064bff19e17d9f4252b806f1d01cee49a1a0 /content/public
parent0c701d2a8fca816305153c108401c367d59506a4 (diff)
downloadchromium_src-d29efa8261b6b0472ea262dadc48a2808f7fdf39.zip
chromium_src-d29efa8261b6b0472ea262dadc48a2808f7fdf39.tar.gz
chromium_src-d29efa8261b6b0472ea262dadc48a2808f7fdf39.tar.bz2
Migrate the IndexedDB backend from Blink to Chromium
To get the IDB backend off the (deprecated) WebKit thread, remove intermediate proxying, and let us take advantage of base utilities, we're moving the code from Blink to Chromium. This patch is basically a glorified copy/paste of the Blink IDB backend code, with Chromium coding style applied, WTF dependencies replaced with STL and base/, redundant classes removed, etc. It introduces some new temporary proxy classes (content/browser/webidb*_impl.*) to allow us build both the old and new backends. The new backend is currently disabled by default. It can be enabled using a new (and temporary) command line switch: --new-indexeddb Once we've done some further cleanup and are confident that the new backend is stable, and the bots have moved from DumpRenderTree to content_shell, we'll switch to the new backend by default. Once that has survived through a dev channel release, we'll delete the Blink code and eliminate unnecessary proxy classes. BUG=234278 R=alecflett@chromium.org, dgrogan@chromium.org, piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202215 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202604 Review URL: https://codereview.chromium.org/15564008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r--content/public/common/content_switches.cc4
-rw-r--r--content/public/common/content_switches.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 982a2cf..da7e00c 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -551,6 +551,10 @@ const char kNoSandbox[] = "no-sandbox";
// finishes.
const char kAllowNoSandboxJob[] = "allow-no-sandbox-job";
+// Use the new IndexedDB backend implemented in Chromium. By default,
+// the old backend implemented in Blink is used.
+const char kNewIndexedDB[] = "new-indexeddb";
+
// Specifies a command that should be used to launch the plugin process. Useful
// for running the plugin process through purify or quantify. Ex:
// --plugin-launcher="path\to\purify /Run=yes"
diff --git a/content/public/common/content_switches.h b/content/public/common/content_switches.h
index 2f9bb76..0a2d56c 100644
--- a/content/public/common/content_switches.h
+++ b/content/public/common/content_switches.h
@@ -166,6 +166,7 @@ extern const char kLoadPlugin[];
CONTENT_EXPORT extern const char kLoggingLevel[];
extern const char kLogPluginMessages[];
extern const char kMemoryMetrics[];
+extern const char kNewIndexedDB[];
CONTENT_EXPORT extern const char kNoReferrers[];
CONTENT_EXPORT extern const char kNoSandbox[];
CONTENT_EXPORT extern const char kAllowNoSandboxJob[];