summaryrefslogtreecommitdiffstats
path: root/webkit/api
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 01:41:44 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 01:41:44 +0000
commite19b7e8e213bd2d826628bef6f258d92fdc774de (patch)
tree1c545eb7e02f78a52d54781faa37d4fb80ec8458 /webkit/api
parentf9a5964bff26154d7086636685568783a253d9fe (diff)
downloadchromium_src-e19b7e8e213bd2d826628bef6f258d92fdc774de.zip
chromium_src-e19b7e8e213bd2d826628bef6f258d92fdc774de.tar.gz
chromium_src-e19b7e8e213bd2d826628bef6f258d92fdc774de.tar.bz2
Stubs for DB-related methods in ChromiumBridge. Allows us to compile the Chromium SQLite VFS.BUG=noneTEST=none
BUG=none TEST=none Review URL: http://codereview.chromium.org/155391 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api')
-rw-r--r--webkit/api/src/ChromiumBridge.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/webkit/api/src/ChromiumBridge.cpp b/webkit/api/src/ChromiumBridge.cpp
index 4d05a2e..13134bc 100644
--- a/webkit/api/src/ChromiumBridge.cpp
+++ b/webkit/api/src/ChromiumBridge.cpp
@@ -33,6 +33,7 @@
#include <googleurl/src/url_util.h>
+#include "FileSystem.h"
#include "WebClipboard.h"
#include "WebData.h"
#include "WebImage.h"
@@ -420,4 +421,36 @@ bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash)
return webKitClient()->isLinkVisited(visitedLinkHash);
}
+// HTML5 DB -------------------------------------------------------------------
+
+#if ENABLE(DATABASE)
+PlatformFileHandle ChromiumBridge::databaseOpenFile(const String& fileName, int desiredFlags)
+{
+ // FIXME: un-stub when the code on the browser process side is submitted
+ //return webKitClient()->databaseOpenFile(WebString(fileName), desiredFlags);
+ return invalidPlatformFileHandle;
+}
+
+bool ChromiumBridge::databaseDeleteFile(const String& fileName)
+{
+ // FIXME: un-stub when the code on the browser process side is submitted
+ //return webKitClient()->databaseDeleteFile(WebString(fileName));
+ return false;
+}
+
+long ChromiumBridge::databaseGetFileAttributes(const String& fileName)
+{
+ // FIXME: un-stub when the code on the browser process side is submitted
+ //return webKitClient()->databaseGetFileAttributes(WebString(fileName));
+ return 0L;
+}
+
+long long ChromiumBridge::databaseGetFileSize(const String& fileName)
+{
+ // FIXME: un-stub when the code on the browser process side is submitted
+ //return webKitClient()->databaseGetFileSize(WebString(fileName));
+ return 0LL;
+}
+#endif
+
} // namespace WebCore