#include "storage/browser/quota/storage_policy_observer.h"
#include <utility>
#include "base/task/sequenced_task_runner.h"
#include "url/origin.h"
namespace storage {
class StoragePolicyObserverIOThread
: public storage::SpecialStoragePolicy::Observer { … };
StoragePolicyObserver::StoragePolicyObserver(
ApplyPolicyUpdatesCallback callback,
scoped_refptr<base::SequencedTaskRunner> io_task_runner,
scoped_refptr<storage::SpecialStoragePolicy> storage_policy)
: … { … }
StoragePolicyObserver::~StoragePolicyObserver() { … }
void StoragePolicyObserver::StartTrackingOrigin(const url::Origin& origin) { … }
void StoragePolicyObserver::StartTrackingOrigins(
const std::vector<url::Origin>& origins) { … }
void StoragePolicyObserver::StopTrackingOrigin(const url::Origin& origin) { … }
void StoragePolicyObserver::OnPolicyChanged() { … }
bool StoragePolicyObserver::ShouldPurgeOnShutdownForTesting(
const url::Origin& origin) { … }
bool StoragePolicyObserver::ShouldPurgeOnShutdown(const GURL& origin) { … }
void StoragePolicyObserver::OnPolicyChangedForOrigins(
const std::vector<std::pair<const GURL, OriginState>*>& updated_origins) { … }
void StoragePolicyObserver::AddPolicyUpdate(
std::pair<const GURL, OriginState>* entry,
std::vector<storage::mojom::StoragePolicyUpdatePtr>* policy_updates) { … }
}