#include "content/browser/quota/quota_manager_host.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "content/browser/quota/quota_change_dispatcher.h"
#include "storage/browser/quota/quota_manager.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/quota/quota_types.mojom.h"
namespace content {
QuotaManagerHost::QuotaManagerHost(
const blink::StorageKey& storage_key,
storage::QuotaManager* quota_manager,
scoped_refptr<QuotaChangeDispatcher> quota_change_dispatcher)
: … { … }
void QuotaManagerHost::AddChangeListener(
mojo::PendingRemote<blink::mojom::QuotaChangeListener> mojo_listener,
AddChangeListenerCallback callback) { … }
void QuotaManagerHost::QueryStorageUsageAndQuota(
QueryStorageUsageAndQuotaCallback callback) { … }
void QuotaManagerHost::DidQueryStorageUsageAndQuota(
QueryStorageUsageAndQuotaCallback callback,
blink::mojom::QuotaStatusCode status,
int64_t usage,
int64_t quota,
blink::mojom::UsageBreakdownPtr usage_breakdown) { … }
QuotaManagerHost::~QuotaManagerHost() = default;
}