#include "third_party/blink/renderer/platform/storage/blink_storage_key.h"
#include <ostream>
#include "base/types/optional_util.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/storage_key/ancestor_chain_bit.mojom-blink.h"
#include "third_party/blink/renderer/platform/network/blink_schemeful_site.h"
namespace blink {
BlinkStorageKey::BlinkStorageKey()
: … { … }
BlinkStorageKey::BlinkStorageKey(
scoped_refptr<const SecurityOrigin> origin,
const BlinkSchemefulSite& top_level_site,
const base::UnguessableToken* nonce,
mojom::blink::AncestorChainBit ancestor_chain_bit)
: … { … }
BlinkStorageKey BlinkStorageKey::CreateFirstParty(
scoped_refptr<const SecurityOrigin> origin) { … }
BlinkStorageKey BlinkStorageKey::CreateWithNonce(
scoped_refptr<const SecurityOrigin> origin,
const base::UnguessableToken& nonce) { … }
BlinkStorageKey BlinkStorageKey::Create(
scoped_refptr<const SecurityOrigin> origin,
const BlinkSchemefulSite& top_level_site,
mojom::blink::AncestorChainBit ancestor_chain_bit) { … }
BlinkStorageKey BlinkStorageKey::CreateFromStringForTesting(
const WTF::String& origin) { … }
BlinkStorageKey::BlinkStorageKey(const StorageKey& storage_key)
: … { … }
operator StorageKey()
bool BlinkStorageKey::FromWire(
scoped_refptr<const SecurityOrigin> origin,
const BlinkSchemefulSite& top_level_site,
const BlinkSchemefulSite& top_level_site_if_third_party_enabled,
const std::optional<base::UnguessableToken>& nonce,
mojom::blink::AncestorChainBit ancestor_chain_bit,
mojom::blink::AncestorChainBit ancestor_chain_bit_if_third_party_enabled,
BlinkStorageKey& out) { … }
BlinkStorageKey BlinkStorageKey::WithOrigin(
scoped_refptr<const SecurityOrigin> origin) const { … }
String BlinkStorageKey::ToDebugString() const { … }
bool BlinkStorageKey::ExactMatchForTesting(const BlinkStorageKey& other) const { … }
bool operator==(const BlinkStorageKey& lhs, const BlinkStorageKey& rhs) { … }
bool operator!=(const BlinkStorageKey& lhs, const BlinkStorageKey& rhs) { … }
std::ostream& operator<<(std::ostream& ostream, const BlinkStorageKey& key) { … }
bool BlinkStorageKey::IsValid() const { … }
}