chromium/out/Default/gen/chrome/browser/companion/core/mojom/companion.mojom-shared.h

// chrome/browser/companion/core/mojom/companion.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 CHROME_BROWSER_COMPANION_CORE_MOJOM_COMPANION_MOJOM_SHARED_H_
#define CHROME_BROWSER_COMPANION_CORE_MOJOM_COMPANION_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 "chrome/browser/companion/core/mojom/companion.mojom-shared-internal.h"
#include "url/mojom/url.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"






namespace side_panel::mojom {
class ImageQueryDataView;

class LinkOpenMetadataDataView;

class VisualSearchResultDataView;



}  // side_panel::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::side_panel::mojom::ImageQueryDataView> {};

template <>
struct MojomTypeTraits<::side_panel::mojom::LinkOpenMetadataDataView> {};

template <>
struct MojomTypeTraits<::side_panel::mojom::VisualSearchResultDataView> {};

}  // namespace internal
}  // namespace mojo


namespace side_panel::mojom {


enum class MethodType : int32_t {};

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


enum class PromoType : int32_t {};

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


enum class LoadingState : int32_t {};

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


enum class PromoAction : int32_t {};

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


enum class PhFeedback : int32_t {};

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


enum class UiSurface : int32_t {};

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


enum class LinkOpenMetadata_LinkOpenAction : int32_t {};

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

CompanionPageHandlerFactoryPtrDataView;
CompanionPageHandlerFactoryRequestDataView;
CompanionPageHandlerFactoryAssociatedPtrInfoDataView;
CompanionPageHandlerFactoryAssociatedRequestDataView;
class CompanionPageHandlerInterfaceBase {};

CompanionPageHandlerPtrDataView;
CompanionPageHandlerRequestDataView;
CompanionPageHandlerAssociatedPtrInfoDataView;
CompanionPageHandlerAssociatedRequestDataView;
class CompanionPageInterfaceBase {};

CompanionPagePtrDataView;
CompanionPageRequestDataView;
CompanionPageAssociatedPtrInfoDataView;
CompanionPageAssociatedRequestDataView;


class ImageQueryDataView {};


class LinkOpenMetadataDataView {};


class VisualSearchResultDataView {};


}  // side_panel::mojom

namespace std {

template <>
struct hash<::side_panel::mojom::MethodType>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::MethodType> {};

template <>
struct hash<::side_panel::mojom::PromoType>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::PromoType> {};

template <>
struct hash<::side_panel::mojom::LoadingState>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::LoadingState> {};

template <>
struct hash<::side_panel::mojom::PromoAction>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::PromoAction> {};

template <>
struct hash<::side_panel::mojom::PhFeedback>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::PhFeedback> {};

template <>
struct hash<::side_panel::mojom::UiSurface>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::UiSurface> {};

template <>
struct hash<::side_panel::mojom::LinkOpenMetadata_LinkOpenAction>
    : public mojo::internal::EnumHashImpl<::side_panel::mojom::LinkOpenMetadata_LinkOpenAction> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::side_panel::mojom::MethodType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::PromoType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::LoadingState, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::PromoAction, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::PhFeedback, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::UiSurface, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::LinkOpenMetadata_LinkOpenAction, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::ImageQueryDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::LinkOpenMetadataDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::side_panel::mojom::VisualSearchResultDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace side_panel::mojom {

inline void ImageQueryDataView::GetUploadUrlDataView(
    ::url::mojom::UrlDataView* output) {}
inline void ImageQueryDataView::GetImageUrlDataView(
    ::url::mojom::UrlDataView* output) {}
inline void ImageQueryDataView::GetContentTypeDataView(
    mojo::StringDataView* output) {}
inline void ImageQueryDataView::GetImageBytesDataView(
    mojo::ArrayDataView<uint8_t>* output) {}




inline void VisualSearchResultDataView::GetDataUriDataView(
    mojo::StringDataView* output) {}
inline void VisualSearchResultDataView::GetAltTextDataView(
    mojo::StringDataView* output) {}



}  // side_panel::mojom

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

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::MethodType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::PromoType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::LoadingState> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::PromoAction> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::PhFeedback> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::UiSurface> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::side_panel::mojom::LinkOpenMetadata_LinkOpenAction> {};

} // namespace perfetto

#endif  // CHROME_BROWSER_COMPANION_CORE_MOJOM_COMPANION_MOJOM_SHARED_H_