summaryrefslogtreecommitdiffstats
path: root/chrome/common/database_util.h
diff options
context:
space:
mode:
authorericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 01:30:08 +0000
committerericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 01:30:08 +0000
commit2b437e23748d7444f1698ae9242fabf0bc0730a7 (patch)
tree40a740c3f0a8032e30299d8724e54d9a269291af /chrome/common/database_util.h
parente0976a77dcc9be00485086b5b0e112fe6d159ff2 (diff)
downloadchromium_src-2b437e23748d7444f1698ae9242fabf0bc0730a7.zip
chromium_src-2b437e23748d7444f1698ae9242fabf0bc0730a7.tar.gz
chromium_src-2b437e23748d7444f1698ae9242fabf0bc0730a7.tar.bz2
Changes to the Browser to support Database access from Workers.
This changelist should have no visible effect until the V8 bindings for the Database get added to the Worker context in WebKit. BUG=none TEST=webkit layout tests Review URL: http://codereview.chromium.org/1387001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/database_util.h')
-rw-r--r--chrome/common/database_util.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/common/database_util.h b/chrome/common/database_util.h
new file mode 100644
index 0000000..70bd029
--- /dev/null
+++ b/chrome/common/database_util.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2010 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.
+
+#ifndef CHROME_COMMON_DATABASE_UTIL_H_
+#define CHROME_COMMON_DATABASE_UTIL_H_
+
+#include "webkit/glue/webkitclient_impl.h"
+
+// A class of utility functions used by RendererWebKitClientImpl and
+// WorkerWebKitClientImpl to handle database file accesses.
+class DatabaseUtil {
+ public:
+ static WebKit::WebKitClient::FileHandle databaseOpenFile(
+ const WebKit::WebString& vfs_file_name,
+ int desired_flags, WebKit::WebKitClient::FileHandle* dir_handle);
+ static int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
+ bool sync_dir);
+ static long databaseGetFileAttributes(const WebKit::WebString& vfs_file_name);
+ static long long databaseGetFileSize(const WebKit::WebString& vfs_file_name);
+};
+
+#endif // CHROME_COMMON_DATABASE_UTIL_H_