summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 08:55:50 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 08:55:50 +0000
commitca2dbcc7448cbc32f51efe78d7aadd3def2d45e2 (patch)
tree25dc14bf3d2f74add0d691f712f0edc6f0672c96 /content
parentc736d3cc492a2e7fff505069ad1df01926359352 (diff)
downloadchromium_src-ca2dbcc7448cbc32f51efe78d7aadd3def2d45e2.zip
chromium_src-ca2dbcc7448cbc32f51efe78d7aadd3def2d45e2.tar.gz
chromium_src-ca2dbcc7448cbc32f51efe78d7aadd3def2d45e2.tar.bz2
Adopt the WebIDBFactory interface for deleteDatabase
BUG=72002 TEST=none Review URL: http://codereview.chromium.org/7071014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/renderer_webidbfactory_impl.cc13
-rw-r--r--content/renderer/renderer_webidbfactory_impl.h10
2 files changed, 21 insertions, 2 deletions
diff --git a/content/renderer/renderer_webidbfactory_impl.cc b/content/renderer/renderer_webidbfactory_impl.cc
index 64ec0a9..bd0800c 100644
--- a/content/renderer/renderer_webidbfactory_impl.cc
+++ b/content/renderer/renderer_webidbfactory_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -44,6 +44,17 @@ void RendererWebIDBFactoryImpl::deleteDatabase(
const WebSecurityOrigin& origin,
WebFrame* web_frame,
const WebString& data_dir) {
+ deleteDatabase(name, callbacks, origin, web_frame, data_dir,
+ WebKit::WebIDBFactory::DefaultBackingStore);
+}
+
+void RendererWebIDBFactoryImpl::deleteDatabase(
+ const WebString& name,
+ WebIDBCallbacks* callbacks,
+ const WebSecurityOrigin& origin,
+ WebFrame* web_frame,
+ const WebString& data_dir,
+ WebKit::WebIDBFactory::BackingStoreType) {
// Don't send the data_dir. We know what we want on the Browser side of
// things.
IndexedDBDispatcher* dispatcher =
diff --git a/content/renderer/renderer_webidbfactory_impl.h b/content/renderer/renderer_webidbfactory_impl.h
index 941dc81..29572c6 100644
--- a/content/renderer/renderer_webidbfactory_impl.h
+++ b/content/renderer/renderer_webidbfactory_impl.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -32,12 +32,20 @@ class RendererWebIDBFactoryImpl : public WebKit::WebIDBFactory {
const WebKit::WebString& data_dir,
unsigned long long maximum_size,
WebKit::WebIDBFactory::BackingStoreType);
+ // FIXME(jochen): remove after webkit roll.
virtual void deleteDatabase(
const WebKit::WebString& name,
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebSecurityOrigin& origin,
WebKit::WebFrame* web_frame,
const WebKit::WebString& data_dir);
+ virtual void deleteDatabase(
+ const WebKit::WebString& name,
+ WebKit::WebIDBCallbacks* callbacks,
+ const WebKit::WebSecurityOrigin& origin,
+ WebKit::WebFrame* web_frame,
+ const WebKit::WebString& data_dir,
+ WebKit::WebIDBFactory::BackingStoreType);
};
#endif // CONTENT_RENDERER_RENDERER_WEBIDBFACTORY_IMPL_H_