#include "content/browser/cache_storage/cache_storage_quota_client.h"
#include "components/services/storage/public/cpp/buckets/bucket_locator.h"
#include "content/browser/cache_storage/cache_storage_manager.h"
#include "storage/browser/quota/quota_client_type.h"
#include "third_party/blink/public/mojom/quota/quota_types.mojom.h"
namespace content {
CacheStorageQuotaClient::CacheStorageQuotaClient(
scoped_refptr<CacheStorageManager> cache_manager,
storage::mojom::CacheStorageOwner owner)
: … { … }
CacheStorageQuotaClient::~CacheStorageQuotaClient() { … }
void CacheStorageQuotaClient::GetBucketUsage(
const storage::BucketLocator& bucket,
GetBucketUsageCallback callback) { … }
void CacheStorageQuotaClient::GetStorageKeysForType(
blink::mojom::StorageType type,
GetStorageKeysForTypeCallback callback) { … }
void CacheStorageQuotaClient::DeleteBucketData(
const storage::BucketLocator& bucket,
DeleteBucketDataCallback callback) { … }
void CacheStorageQuotaClient::PerformStorageCleanup(
blink::mojom::StorageType type,
PerformStorageCleanupCallback callback) { … }
storage::QuotaClientType CacheStorageQuotaClient::GetClientTypeFromOwner(
storage::mojom::CacheStorageOwner owner) { … }
}