#include "net/cookies/cookie_partition_key_collection.h"
#include <vector>
#include "base/containers/contains.h"
#include "base/containers/flat_map.h"
#include "base/containers/flat_set.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "net/base/schemeful_site.h"
#include "net/cookies/cookie_access_delegate.h"
#include "net/cookies/cookie_partition_key.h"
#include "net/first_party_sets/first_party_set_entry.h"
namespace net {
CookiePartitionKeyCollection::CookiePartitionKeyCollection() = default;
CookiePartitionKeyCollection::CookiePartitionKeyCollection(
const CookiePartitionKeyCollection& other) = default;
CookiePartitionKeyCollection::CookiePartitionKeyCollection(
CookiePartitionKeyCollection&& other) = default;
CookiePartitionKeyCollection::CookiePartitionKeyCollection(
const CookiePartitionKey& key)
: … { … }
CookiePartitionKeyCollection::CookiePartitionKeyCollection(
base::flat_set<CookiePartitionKey> keys)
: … { … }
CookiePartitionKeyCollection::CookiePartitionKeyCollection(
bool contains_all_keys)
: … { … }
CookiePartitionKeyCollection& CookiePartitionKeyCollection::operator=(
const CookiePartitionKeyCollection& other) = default;
CookiePartitionKeyCollection& CookiePartitionKeyCollection::operator=(
CookiePartitionKeyCollection&& other) = default;
CookiePartitionKeyCollection::~CookiePartitionKeyCollection() = default;
bool CookiePartitionKeyCollection::Contains(
const CookiePartitionKey& key) const { … }
bool operator==(const CookiePartitionKeyCollection& lhs,
const CookiePartitionKeyCollection& rhs) { … }
std::ostream& operator<<(std::ostream& os,
const CookiePartitionKeyCollection& keys) { … }
}