summaryrefslogtreecommitdiffstats
path: root/dom/quota/QuotaManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/quota/QuotaManager.h')
-rw-r--r--dom/quota/QuotaManager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/quota/QuotaManager.h b/dom/quota/QuotaManager.h
index 354977166a..25c069810d 100644
--- a/dom/quota/QuotaManager.h
+++ b/dom/quota/QuotaManager.h
@@ -243,6 +243,9 @@ class QuotaManager final : public BackgroundThreadObject {
Result<nsCOMPtr<nsIFile>, nsresult> GetOriginDirectory(
const OriginMetadata& aOriginMetadata) const;
+ Result<bool, nsresult> DoesOriginDirectoryExist(
+ const OriginMetadata& aOriginMetadata) const;
+
static nsresult CreateDirectoryMetadata(
nsIFile& aDirectory, int64_t aTimestamp,
const OriginMetadata& aOriginMetadata);
@@ -265,6 +268,9 @@ class QuotaManager final : public BackgroundThreadObject {
Result<Ok, nsresult> RemoveOriginDirectory(nsIFile& aDirectory);
+ Result<bool, nsresult> DoesClientDirectoryExist(
+ const ClientMetadata& aClientMetadata) const;
+
RefPtr<UniversalDirectoryLockPromise> OpenStorageDirectory(
const Nullable<PersistenceType>& aPersistenceType,
const OriginScope& aOriginScope,