chromium/ui/base/clipboard/custom_data_helper.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// TODO(dcheng): For efficiency reasons, consider passing custom data around
// as a vector instead. It allows us to append a
// std::pair<std::u16string, std::u16string> and swap the deserialized values.

#include "ui/base/clipboard/custom_data_helper.h"

#include <tuple>
#include <utility>

#include "base/containers/span.h"
#include "base/pickle.h"

namespace ui {

namespace {

bool SkipString16(base::PickleIterator* iter) {}

}  // namespace

void ReadCustomDataTypes(base::span<const uint8_t> data,
                         std::vector<std::u16string>* types) {}

std::optional<std::u16string> ReadCustomDataForType(
    base::span<const uint8_t> data,
    std::u16string_view type) {}

std::optional<std::unordered_map<std::u16string, std::u16string>>
ReadCustomDataIntoMap(base::span<const uint8_t> data) {}

void WriteCustomDataToPickle(
    const std::unordered_map<std::u16string, std::u16string>& data,
    base::Pickle* pickle) {}

void WriteCustomDataToPickle(
    const base::flat_map<std::u16string, std::u16string>& data,
    base::Pickle* pickle) {}

}  // namespace ui