chromium/out/Default/gen/mojo/public/interfaces/bindings/native_struct.mojom-shared.h

// mojo/public/interfaces/bindings/native_struct.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

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

#ifndef MOJO_PUBLIC_INTERFACES_BINDINGS_NATIVE_STRUCT_MOJOM_SHARED_H_
#define MOJO_PUBLIC_INTERFACES_BINDINGS_NATIVE_STRUCT_MOJOM_SHARED_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "mojo/public/interfaces/bindings/native_struct.mojom-shared-internal.h"



#include "base/component_export.h"




namespace mojo::native {
class SerializedHandleDataView;

class NativeStructDataView;



}  // mojo::native

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::mojo::native::SerializedHandleDataView> {};

template <>
struct MojomTypeTraits<::mojo::native::NativeStructDataView> {};

}  // namespace internal
}  // namespace mojo


namespace mojonative  // mojo::native

namespace std {

template <>
struct hash<::mojo::native::SerializedHandleType>
    : public mojo::internal::EnumHashImpl<::mojo::native::SerializedHandleType> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::mojo::native::SerializedHandleType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::mojo::native::SerializedHandleDataView, MaybeConstUserType>;

}  // namespace internal


}  // namespace mojo


namespace mojo::native {



inline void NativeStructDataView::GetDataDataView(
    mojo::ArrayDataView<uint8_t>* output) {}
inline void NativeStructDataView::GetHandlesDataView(
    mojo::ArrayDataView<SerializedHandleDataView>* output) {}



}  // mojo::native

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJO_MOJOM_BINDINGS_SHARED) TraceFormatTraits<::mojo::native::SerializedHandleType> {};

} // namespace perfetto

#endif  // MOJO_PUBLIC_INTERFACES_BINDINGS_NATIVE_STRUCT_MOJOM_SHARED_H_