Implement WebKit side of IDBFactory::getDatabaseNames
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 04:06:31 +0000 (04:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 04:06:31 +0000 (04:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68037

Patch by Joshua Bell <jsbell@chromium.org> on 2011-09-21
Reviewed by Tony Chang.

Interface changes and stub implementations for
new IndexedDB IDBFactory.getDatabaseNames. This is
part one of a two-sided patch.

* public/WebIDBCallbacks.h:
(WebKit::WebIDBCallbacks::onSuccess):
* public/WebIDBFactory.h:
(WebKit::WebIDBFactory::getDatabaseNames):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95698 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebIDBCallbacks.h
Source/WebKit/chromium/public/WebIDBFactory.h

index 5f6fe6e..7bb8c96 100644 (file)
@@ -1,3 +1,19 @@
+2011-09-21  Joshua Bell  <jsbell@chromium.org>
+
+        Implement WebKit side of IDBFactory::getDatabaseNames
+        https://bugs.webkit.org/show_bug.cgi?id=68037
+
+        Reviewed by Tony Chang.
+
+        Interface changes and stub implementations for
+        new IndexedDB IDBFactory.getDatabaseNames. This is
+        part one of a two-sided patch.
+
+        * public/WebIDBCallbacks.h:
+        (WebKit::WebIDBCallbacks::onSuccess):
+        * public/WebIDBFactory.h:
+        (WebKit::WebIDBFactory::getDatabaseNames):
+
 2011-09-21  Robert Kroeger  <rjkroege@chromium.org>
 
         [chromium] Code cleanup in gesture recognizer unit tests
index a6448b4..79de422 100644 (file)
@@ -30,6 +30,7 @@
 
 namespace WebKit {
 
+class WebDOMStringList;
 class WebIDBCursor;
 class WebIDBDatabase;
 class WebIDBDatabaseError;
@@ -46,6 +47,7 @@ public:
     // For classes that follow the PImpl pattern, pass a const reference.
     // For the rest, pass ownership to the callee via a pointer.
     virtual void onError(const WebIDBDatabaseError&) { WEBKIT_ASSERT_NOT_REACHED(); }
+    virtual void onSuccess(const WebDOMStringList&) { WEBKIT_ASSERT_NOT_REACHED(); }
     virtual void onSuccess(WebIDBCursor*) { WEBKIT_ASSERT_NOT_REACHED(); }
     virtual void onSuccess(WebIDBDatabase*) { WEBKIT_ASSERT_NOT_REACHED(); }
     virtual void onSuccess(const WebIDBKey&) { WEBKIT_ASSERT_NOT_REACHED(); }
index f11ffd4..b1a708b 100755 (executable)
@@ -57,6 +57,8 @@ public:
         SQLiteBackingStore
     };
 
+    virtual void getDatabaseNames(WebIDBCallbacks*, const WebSecurityOrigin&, WebFrame*, const WebString& dataDir, unsigned long long maximumSize, BackingStoreType) { WEBKIT_ASSERT_NOT_REACHED(); }
+
     // The WebKit implementation of open ignores the WebFrame* parameter.
     virtual void open(const WebString& name, WebIDBCallbacks*, const WebSecurityOrigin&, WebFrame*, const WebString& dataDir, unsigned long long maximumSize, BackingStoreType) { WEBKIT_ASSERT_NOT_REACHED(); }