summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB/DatabaseFileManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/indexedDB/DatabaseFileManager.h')
-rw-r--r--dom/indexedDB/DatabaseFileManager.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/dom/indexedDB/DatabaseFileManager.h b/dom/indexedDB/DatabaseFileManager.h
index 62d11e95a5..fdfea06ba1 100644
--- a/dom/indexedDB/DatabaseFileManager.h
+++ b/dom/indexedDB/DatabaseFileManager.h
@@ -31,12 +31,15 @@ class DatabaseFileManager final
const quota::OriginMetadata mOriginMetadata;
const nsString mDatabaseName;
const nsCString mDatabaseID;
+ const nsString mDatabaseFilePath;
RefPtr<IndexedDBCipherKeyManager> mCipherKeyManager;
LazyInitializedOnce<const nsString> mDirectoryPath;
LazyInitializedOnce<const nsString> mJournalDirectoryPath;
+ uint64_t mDatabaseVersion;
+
const bool mEnforcingQuota;
const bool mIsInPrivateBrowsingMode;
@@ -68,7 +71,8 @@ class DatabaseFileManager final
DatabaseFileManager(PersistenceType aPersistenceType,
const quota::OriginMetadata& aOriginMetadata,
const nsAString& aDatabaseName,
- const nsCString& aDatabaseID, bool aEnforcingQuota,
+ const nsCString& aDatabaseID,
+ const nsAString& aDatabaseFilePath, bool aEnforcingQuota,
bool aIsInPrivateBrowsingMode);
PersistenceType Type() const { return mPersistenceType; }
@@ -83,6 +87,14 @@ class DatabaseFileManager final
const nsCString& DatabaseID() const { return mDatabaseID; }
+ const nsAString& DatabaseFilePath() const { return mDatabaseFilePath; }
+
+ uint64_t DatabaseVersion() const { return mDatabaseVersion; }
+
+ void UpdateDatabaseVersion(uint64_t aDatabaseVersion) {
+ mDatabaseVersion = aDatabaseVersion;
+ }
+
IndexedDBCipherKeyManager& MutableCipherKeyManagerRef() const {
MOZ_ASSERT(mIsInPrivateBrowsingMode);
MOZ_ASSERT(mCipherKeyManager);