chromium/mojo/public/cpp/base/proto_wrapper.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "mojo/public/cpp/base/proto_wrapper.h"

#include <limits>

#include "base/check_op.h"
#include "third_party/protobuf/src/google/protobuf/message_lite.h"

namespace mojo_base {

ProtoWrapper::ProtoWrapper() = default;
ProtoWrapper::ProtoWrapper(mojo::DefaultConstruct::Tag passkey) {}
ProtoWrapper::~ProtoWrapper() = default;
ProtoWrapper::ProtoWrapper(ProtoWrapper&& other) = default;
ProtoWrapper& ProtoWrapper::operator=(ProtoWrapper&& other) = default;

ProtoWrapper::ProtoWrapper(const google::protobuf::MessageLite& message) {}

ProtoWrapper::ProtoWrapper(base::span<const uint8_t> data,
                           std::string type_name,
                           base::PassKey<ProtoWrapperBytes> passkey) {}

bool ProtoWrapper::DeserializeToMessage(
    google::protobuf::MessageLite& message) {}

}  // namespace mojo_base