#ifndef CONTENT_BROWSER_INDEXED_DB_FILE_PATH_UTIL_H_
#define CONTENT_BROWSER_INDEXED_DB_FILE_PATH_UTIL_H_
#include <stdint.h>
#include "base/files/file_path.h"
#include "content/common/content_export.h"
namespace storage {
struct BucketLocator;
}
namespace content {
namespace indexed_db {
extern CONTENT_EXPORT const base::FilePath::CharType kIndexedDBExtension[];
extern const base::FilePath::CharType kIndexedDBFile[];
extern CONTENT_EXPORT const base::FilePath::CharType kLevelDBExtension[];
bool ShouldUseLegacyFilePath(const storage::BucketLocator& bucket_locator);
base::FilePath GetBlobStoreFileName(
const storage::BucketLocator& bucket_locator);
base::FilePath GetLevelDBFileName(const storage::BucketLocator& bucket_locator);
base::FilePath GetBlobDirectoryName(const base::FilePath& path_base,
int64_t database_id);
base::FilePath GetBlobDirectoryNameForKey(const base::FilePath& path_base,
int64_t database_id,
int64_t blob_number);
base::FilePath GetBlobFileNameForKey(const base::FilePath& path_base,
int64_t database_id,
int64_t blob_number);
bool IsPathTooLong(const base::FilePath& leveldb_dir);
}
}
#endif