summaryrefslogtreecommitdiffstats
path: root/webkit/database/database_util.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 01:30:45 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 01:30:45 +0000
commit3c5ed2c5747de75351c18fbf1e969eccc263d1d5 (patch)
tree75ba30df50a1f0bd4ecd90d51051b3bb057c2a51 /webkit/database/database_util.h
parentdad1e3bc1d2894be09c2a5bcb98708044aa1664d (diff)
downloadchromium_src-3c5ed2c5747de75351c18fbf1e969eccc263d1d5.zip
chromium_src-3c5ed2c5747de75351c18fbf1e969eccc263d1d5.tar.gz
chromium_src-3c5ed2c5747de75351c18fbf1e969eccc263d1d5.tar.bz2
Changing the file naming scheme. Creating a directory for each origin,
and naming files according to the row ID of the respective DB in the tracker database. Also, fixing a bug: caching the renderer process handle in DatabaseDispatcherHost after it was set in ResourceMessageFilter. TEST=none BUG=none Review URL: http://codereview.chromium.org/385051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database/database_util.h')
-rw-r--r--webkit/database/database_util.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/webkit/database/database_util.h b/webkit/database/database_util.h
new file mode 100644
index 0000000..7df1d38
--- /dev/null
+++ b/webkit/database/database_util.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2009 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 WEBKIT_DATABASE_DATABASE_UTIL_H_
+#define WEBKIT_DATABASE_DATABASE_UTIL_H_
+
+#include "base/file_path.h"
+#include "base/string16.h"
+
+namespace webkit_database {
+
+class DatabaseTracker;
+
+class DatabaseUtil {
+ public:
+ static bool CrackVfsFilePath(const string16& vfs_file_path,
+ string16* origin_identifier,
+ string16* database_name,
+ string16* sqlite_suffix);
+ static FilePath GetFullFilePathForVfsFile(DatabaseTracker* db_tracker,
+ const string16& vfs_file_path);
+
+};
+
+} // namespace webkit_database
+
+#endif // WEBKIT_DATABASE_DATABASE_UTIL_H_