chromium/out/Default/gen/third_party/blink/public/mojom/mediastream/media_stream.mojom-shared.h

// third_party/blink/public/mojom/mediastream/media_stream.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 THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_MOJOM_SHARED_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_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 "third_party/blink/public/mojom/mediastream/media_stream.mojom-shared-internal.h"
#include "media/capture/mojom/video_capture_types.mojom-shared.h"
#include "media/mojo/mojom/audio_parameters.mojom-shared.h"
#include "media/mojo/mojom/display_media_information.mojom-shared.h"
#include "mojo/public/mojom/base/token.mojom-shared.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-shared.h"
#include "third_party/blink/public/mojom/mediastream/media_devices.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"


#include "mojo/public/cpp/bindings/native_enum.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "base/component_export.h"




namespace blink::mojom {
class SearchOnlyByDeviceIdDataView;

class SearchBySessionIdDataView;

class MediaStreamDeviceDataView;

class TrackControlsDataView;

class StreamControlsDataView;

class GetOpenDeviceResponseDataView;

class CapturedWheelActionDataView;

class StreamDevicesDataView;

class StreamDevicesSetDataView;

class StreamSelectionInfoDataView;


}  // blink::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::blink::mojom::SearchOnlyByDeviceIdDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::SearchBySessionIdDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::MediaStreamDeviceDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::TrackControlsDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::StreamControlsDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::GetOpenDeviceResponseDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::CapturedWheelActionDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::StreamDevicesDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::StreamDevicesSetDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::StreamSelectionInfoDataView> {};

}  // namespace internal
}  // namespace mojo


namespace blinkmojom  // blink::mojom

namespace std {

template <>
struct hash<::blink::mojom::MediaStreamType>
    : public mojo::internal::EnumHashImpl<::blink::mojom::MediaStreamType> {};

template <>
struct hash<::blink::mojom::MediaStreamRequestResult>
    : public mojo::internal::EnumHashImpl<::blink::mojom::MediaStreamRequestResult> {};

template <>
struct hash<::blink::mojom::MediaStreamStateChange>
    : public mojo::internal::EnumHashImpl<::blink::mojom::MediaStreamStateChange> {};

template <>
struct hash<::blink::mojom::PreferredDisplaySurface>
    : public mojo::internal::EnumHashImpl<::blink::mojom::PreferredDisplaySurface> {};

template <>
struct hash<::blink::mojom::CapturedSurfaceControlResult>
    : public mojo::internal::EnumHashImpl<::blink::mojom::CapturedSurfaceControlResult> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::blink::mojom::MediaStreamType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MediaStreamRequestResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MediaStreamStateChange, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PreferredDisplaySurface, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CapturedSurfaceControlResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::SearchOnlyByDeviceIdDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::SearchBySessionIdDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::MediaStreamDeviceDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::TrackControlsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::StreamControlsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::GetOpenDeviceResponseDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::CapturedWheelActionDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::StreamDevicesDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::StreamDevicesSetDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::StreamSelectionInfoDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace blink::mojom {



inline void SearchBySessionIdDataView::GetSessionIdMapDataView(
    mojo::MapDataView<mojo::StringDataView, ::mojo_base::mojom::UnguessableTokenDataView>* output) {}


inline void MediaStreamDeviceDataView::GetIdDataView(
    mojo::StringDataView* output) {}
inline void MediaStreamDeviceDataView::GetGroupIdDataView(
    mojo::StringDataView* output) {}
inline void MediaStreamDeviceDataView::GetMatchedOutputDeviceIdDataView(
    mojo::StringDataView* output) {}
inline void MediaStreamDeviceDataView::GetNameDataView(
    mojo::StringDataView* output) {}
inline void MediaStreamDeviceDataView::GetInputDataView(
    ::media::mojom::AudioParametersDataView* output) {}
inline void MediaStreamDeviceDataView::GetSessionIdDataView(
    ::mojo_base::mojom::UnguessableTokenDataView* output) {}
inline void MediaStreamDeviceDataView::GetDisplayMediaInfoDataView(
    ::media::mojom::DisplayMediaInformationDataView* output) {}


inline void TrackControlsDataView::GetDeviceIdsDataView(
    mojo::ArrayDataView<mojo::StringDataView>* output) {}


inline void StreamControlsDataView::GetAudioDataView(
    TrackControlsDataView* output) {}
inline void StreamControlsDataView::GetVideoDataView(
    TrackControlsDataView* output) {}


inline void GetOpenDeviceResponseDataView::GetLabelDataView(
    mojo::StringDataView* output) {}
inline void GetOpenDeviceResponseDataView::GetDeviceDataView(
    MediaStreamDeviceDataView* output) {}




inline void StreamDevicesDataView::GetAudioDeviceDataView(
    MediaStreamDeviceDataView* output) {}
inline void StreamDevicesDataView::GetVideoDeviceDataView(
    MediaStreamDeviceDataView* output) {}


inline void StreamDevicesSetDataView::GetStreamDevicesDataView(
    mojo::ArrayDataView<StreamDevicesDataView>* output) {}


inline void StreamSelectionInfoDataView::GetSearchOnlyByDeviceIdDataView(
    SearchOnlyByDeviceIdDataView* output) const {}
inline void StreamSelectionInfoDataView::GetSearchBySessionIdDataView(
    SearchBySessionIdDataView* output) const {}


}  // blink::mojom

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

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::MediaStreamType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::MediaStreamRequestResult> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::MediaStreamStateChange> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::PreferredDisplaySurface> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::CapturedSurfaceControlResult> {};

} // namespace perfetto

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_MEDIASTREAM_MEDIA_STREAM_MOJOM_SHARED_H_