summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webidbfactory_impl.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 11:43:26 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 11:43:26 +0000
commitad4d97af6f6f8a9f7e0af7dda6448437db744848 (patch)
tree1c14e97673edd5d810a424d89ef0ee17929e1922 /chrome/renderer/renderer_webidbfactory_impl.cc
parent64d797e4a1cd642ab9ba9ff1746c066aa896265b (diff)
downloadchromium_src-ad4d97af6f6f8a9f7e0af7dda6448437db744848.zip
chromium_src-ad4d97af6f6f8a9f7e0af7dda6448437db744848.tar.gz
chromium_src-ad4d97af6f6f8a9f7e0af7dda6448437db744848.tar.bz2
Plumbing for WebIDBFactory::deleteDatabase
BUG=72002 TEST=compiles Review URL: http://codereview.chromium.org/6524012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webidbfactory_impl.cc')
-rw-r--r--chrome/renderer/renderer_webidbfactory_impl.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_webidbfactory_impl.cc b/chrome/renderer/renderer_webidbfactory_impl.cc
index d75f065..5efa552 100644
--- a/chrome/renderer/renderer_webidbfactory_impl.cc
+++ b/chrome/renderer/renderer_webidbfactory_impl.cc
@@ -28,11 +28,26 @@ void RendererWebIDBFactoryImpl::open(
WebIDBCallbacks* callbacks,
const WebSecurityOrigin& origin,
WebFrame* web_frame,
- const WebString& dataDir,
+ const WebString& data_dir,
unsigned long long maximum_size) {
- // Don't send the dataDir. We know what we want on the Browser side of things.
+ // Don't send the data_dir. We know what we want on the Browser side of
+ // things.
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBFactoryOpen(
name, callbacks, origin.databaseIdentifier(), web_frame, maximum_size);
}
+
+void RendererWebIDBFactoryImpl::deleteDatabase(
+ const WebString& name,
+ WebIDBCallbacks* callbacks,
+ const WebSecurityOrigin& origin,
+ WebFrame* web_frame,
+ const WebString& data_dir) {
+ // Don't send the data_dir. We know what we want on the Browser side of
+ // things.
+ IndexedDBDispatcher* dispatcher =
+ RenderThread::current()->indexed_db_dispatcher();
+ dispatcher->RequestIDBFactoryDeleteDatabase(
+ name, callbacks, origin.databaseIdentifier(), web_frame);
+}