#ifndef WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_
#define WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_
#include <string>
#include "base/strings/string16.h"
#include "url/gurl.h"
#include "webkit/browser/webkit_storage_browser_export.h"
namespace base {
class FilePath;
}
namespace webkit_database {
class DatabaseTracker;
class WEBKIT_STORAGE_BROWSER_EXPORT DatabaseUtil {
public:
static const char kJournalFileSuffix[];
static bool CrackVfsFileName(const base::string16& vfs_file_name,
std::string* origin_identifier,
base::string16* database_name,
base::string16* sqlite_suffix);
static base::FilePath GetFullFilePathForVfsFile(
DatabaseTracker* db_tracker,
const base::string16& vfs_file_name);
static bool IsValidOriginIdentifier(const std::string& origin_identifier);
};
}
#endif