blob: f5bb89726b93286ee6a1c353c14c9f304b9fcbf5 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_ATTRIBUTION_REPORTING_ATTRIBUTION_COOKIE_CHECKER_IMPL_H_
#define CONTENT_BROWSER_ATTRIBUTION_REPORTING_ATTRIBUTION_COOKIE_CHECKER_IMPL_H_
#include "base/memory/raw_ptr.h"
#include "content/browser/attribution_reporting/attribution_cookie_checker.h"
#include "content/common/content_export.h"
namespace content {
class StoragePartitionImpl;
class CONTENT_EXPORT AttributionCookieCheckerImpl
: public AttributionCookieChecker {
public:
explicit AttributionCookieCheckerImpl(
StoragePartitionImpl* storage_partition);
~AttributionCookieCheckerImpl() override;
AttributionCookieCheckerImpl(const AttributionCookieCheckerImpl&) = delete;
AttributionCookieCheckerImpl(AttributionCookieCheckerImpl&&) = delete;
AttributionCookieCheckerImpl& operator=(const AttributionCookieCheckerImpl&) =
delete;
AttributionCookieCheckerImpl& operator=(AttributionCookieCheckerImpl&&) =
delete;
// AttributionManagerImpl::CookieChecker:
void IsDebugCookieSet(const url::Origin& origin,
base::OnceCallback<void(bool)> callback) override;
private:
const raw_ptr<StoragePartitionImpl> storage_partition_;
};
} // namespace content
#endif // CONTENT_BROWSER_ATTRIBUTION_REPORTING_ATTRIBUTION_COOKIE_CHECKER_IMPL_H_