chromium/third_party/blink/public/common/storage_key/storage_key_proto_converter.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/public/common/storage_key/storage_key_proto_converter.h"

#include "base/unguessable_token.h"
#include "net/base/schemeful_site.h"
#include "third_party/blink/public/common/storage_key/proto/storage_key.pb.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/origin.h"

namespace storage_key_proto {

using BitType = storage_key_proto::StorageKey::AncestorChainBit::BitType;
using Scheme = storage_key_proto::StorageKey::Origin::Scheme;
using StorageKeyType = StorageKey::OneOfCase;
using UrlType = StorageKey::TopLevelSite::UrlType;

url::Origin MakeOrigin(
    const storage_key_proto::StorageKey::Origin& origin_proto) {}

blink::mojom::AncestorChainBit MakeAncestorChainBit(
    const storage_key_proto::StorageKey::AncestorChainBit& bit_proto,
    const url::Origin& origin,
    const net::SchemefulSite& top_level_site) {}

blink::StorageKey Convert(const storage_key_proto::StorageKey& storage_key) {}

}  // namespace storage_key_proto