chromium/out/Default/gen/media/midi/midi_service.mojom-shared.h

// media/midi/midi_service.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 MEDIA_MIDI_MIDI_SERVICE_MOJOM_SHARED_H_
#define MEDIA_MIDI_MIDI_SERVICE_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 "media/midi/midi_service.mojom-shared-internal.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"






namespace midi::mojom {
class PortInfoDataView;



}  // midi::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::midi::mojom::PortInfoDataView> {};

}  // namespace internal
}  // namespace mojo


namespace midi::mojom {


enum class Result : int32_t {};

 std::ostream& operator<<(std::ostream& os, Result value);
inline bool IsKnownEnumValue(Result value) {}


enum class PortState : int32_t {};

 std::ostream& operator<<(std::ostream& os, PortState value);
inline bool IsKnownEnumValue(PortState value) {}
// Interface base classes. They are used for type safety check.
class MidiSessionClientInterfaceBase {};

MidiSessionClientPtrDataView;
MidiSessionClientRequestDataView;
MidiSessionClientAssociatedPtrInfoDataView;
MidiSessionClientAssociatedRequestDataView;
class MidiSessionProviderInterfaceBase {};

MidiSessionProviderPtrDataView;
MidiSessionProviderRequestDataView;
MidiSessionProviderAssociatedPtrInfoDataView;
MidiSessionProviderAssociatedRequestDataView;
class MidiSessionInterfaceBase {};

MidiSessionPtrDataView;
MidiSessionRequestDataView;
MidiSessionAssociatedPtrInfoDataView;
MidiSessionAssociatedRequestDataView;


class PortInfoDataView {};


}  // midi::mojom

namespace std {

template <>
struct hash<::midi::mojom::Result>
    : public mojo::internal::EnumHashImpl<::midi::mojom::Result> {};

template <>
struct hash<::midi::mojom::PortState>
    : public mojo::internal::EnumHashImpl<::midi::mojom::PortState> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::midi::mojom::Result, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::midi::mojom::PortState, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::midi::mojom::PortInfoDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace midi::mojom {

inline void PortInfoDataView::GetIdDataView(
    mojo::StringDataView* output) {}
inline void PortInfoDataView::GetManufacturerDataView(
    mojo::StringDataView* output) {}
inline void PortInfoDataView::GetNameDataView(
    mojo::StringDataView* output) {}
inline void PortInfoDataView::GetVersionDataView(
    mojo::StringDataView* output) {}



}  // midi::mojom

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

namespace perfetto {

template <>
struct  TraceFormatTraits<::midi::mojom::Result> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::midi::mojom::PortState> {};

} // namespace perfetto

#endif  // MEDIA_MIDI_MIDI_SERVICE_MOJOM_SHARED_H_