chromium/storage/browser/quota/storage_policy_observer.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "storage/browser/quota/storage_policy_observer.h"

#include <utility>

#include "base/task/sequenced_task_runner.h"
#include "url/origin.h"

namespace storage {

// A helper class that lives on the IO thread and registers with
// SpecialStoragePolicy.  It bounces back any OnPolicyChanged messages
// to the StoragePolicyObserver on the provided `reply_task_runner`.
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) {}

}  // namespace storage