#include "components/content_settings/core/common/content_settings_partition_key.h"
#include <optional>
#include "base/check.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/values.h"
namespace content_settings {
#if BUILDFLAG(IS_IOS)
const PartitionKey& PartitionKey::GetDefault() {
return GetDefaultImpl();
}
#endif
const PartitionKey& PartitionKey::GetDefaultForTesting() { … }
PartitionKey PartitionKey::CreateForTesting(std::string domain,
std::string name,
bool in_memory) { … }
const PartitionKey& PartitionKey::WipGetDefault() { … }
std::optional<PartitionKey> PartitionKey::Deserialize(const std::string& data) { … }
std::string PartitionKey::Serialize() const { … }
PartitionKey::PartitionKey(const PartitionKey& key) = default;
PartitionKey::PartitionKey(PartitionKey&& key) = default;
std::strong_ordering PartitionKey::operator<=>(const PartitionKey&) const =
default;
bool PartitionKey::operator==(const PartitionKey&) const = default;
const PartitionKey& PartitionKey::GetDefaultImpl() { … }
PartitionKey::PartitionKey() : … { … }
PartitionKey::PartitionKey(std::string domain, std::string name, bool in_memory)
: … { … }
std::ostream& operator<<(std::ostream& os, const PartitionKey& key) { … }
}