blob: a9820eaec2221c93a211d8e1cdc147d42400b0c1 [file] [log] [blame]
// Copyright 2019 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_PUBLIC_BROWSER_SAME_SITE_DATA_REMOVER_H_
#define CONTENT_PUBLIC_BROWSER_SAME_SITE_DATA_REMOVER_H_
#include <set>
#include "base/callback.h"
#include "content/common/content_export.h"
namespace url {
class Origin;
}
namespace content {
class BrowserContext;
// Clears cookies available in third-party contexts where SameSite=None.
// Also removes storage for domains with a SameSite=None cookie.
CONTENT_EXPORT void ClearSameSiteNoneData(base::OnceClosure closure,
BrowserContext* context);
// Clears cookies available in third-party contexts where SameSite=None. Also
// removes storage for origins in the provided set.
CONTENT_EXPORT void ClearSameSiteNoneCookiesAndStorageForOrigins(
base::OnceClosure closure,
BrowserContext* context,
std::set<url::Origin> origins);
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_SAME_SITE_DATA_REMOVER_H_