chromium/out/Default/gen/chrome/browser/ui/webui/downloads/downloads.mojom-shared.h

// chrome/browser/ui/webui/downloads/downloads.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_UI_WEBUI_DOWNLOADS_DOWNLOADS_MOJOM_SHARED_H_
#define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOWNLOADS_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/ui/webui/downloads/downloads.mojom-shared-internal.h"
#include "mojo/public/mojom/base/string16.mojom-shared.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 downloads::mojom {
class DataDataView;



}  // downloads::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::downloads::mojom::DataDataView> {};

}  // namespace internal
}  // namespace mojo


namespace downloads::mojom {


enum class DangerousDownloadInterstitialSurveyOptions : int32_t {};

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


enum class DangerType : int32_t {};

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


enum class TailoredWarningType : int32_t {};

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


enum class State : int32_t {};

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


enum class SafeBrowsingState : int32_t {};

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

PageHandlerFactoryPtrDataView;
PageHandlerFactoryRequestDataView;
PageHandlerFactoryAssociatedPtrInfoDataView;
PageHandlerFactoryAssociatedRequestDataView;
class PageHandlerInterfaceBase {};

PageHandlerPtrDataView;
PageHandlerRequestDataView;
PageHandlerAssociatedPtrInfoDataView;
PageHandlerAssociatedRequestDataView;
class PageInterfaceBase {};

PagePtrDataView;
PageRequestDataView;
PageAssociatedPtrInfoDataView;
PageAssociatedRequestDataView;


class DataDataView {};


}  // downloads::mojom

namespace std {

template <>
struct hash<::downloads::mojom::DangerousDownloadInterstitialSurveyOptions>
    : public mojo::internal::EnumHashImpl<::downloads::mojom::DangerousDownloadInterstitialSurveyOptions> {};

template <>
struct hash<::downloads::mojom::DangerType>
    : public mojo::internal::EnumHashImpl<::downloads::mojom::DangerType> {};

template <>
struct hash<::downloads::mojom::TailoredWarningType>
    : public mojo::internal::EnumHashImpl<::downloads::mojom::TailoredWarningType> {};

template <>
struct hash<::downloads::mojom::State>
    : public mojo::internal::EnumHashImpl<::downloads::mojom::State> {};

template <>
struct hash<::downloads::mojom::SafeBrowsingState>
    : public mojo::internal::EnumHashImpl<::downloads::mojom::SafeBrowsingState> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::downloads::mojom::DangerousDownloadInterstitialSurveyOptions, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::downloads::mojom::DangerType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::downloads::mojom::TailoredWarningType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::downloads::mojom::State, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::downloads::mojom::SafeBrowsingState, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::downloads::mojom::DataDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace downloads::mojom {

inline void DataDataView::GetByExtIdDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetByExtNameDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetDateStringDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetFileNameDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetFilePathDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetFileUrlDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetAccountEmailDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetIdDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetLastReasonTextDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetProgressStatusTextDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetShowInFolderTextDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetSinceStringDataView(
    mojo::StringDataView* output) {}
inline void DataDataView::GetReferrerUrlDataView(
    ::url::mojom::UrlDataView* output) {}
inline void DataDataView::GetDisplayReferrerUrlDataView(
    ::mojo_base::mojom::String16DataView* output) {}
inline void DataDataView::GetUrlDataView(
    ::url::mojom::UrlDataView* output) {}
inline void DataDataView::GetDisplayUrlDataView(
    ::mojo_base::mojom::String16DataView* output) {}



}  // downloads::mojom

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

namespace perfetto {

template <>
struct  TraceFormatTraits<::downloads::mojom::DangerousDownloadInterstitialSurveyOptions> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::downloads::mojom::DangerType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::downloads::mojom::TailoredWarningType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::downloads::mojom::State> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::downloads::mojom::SafeBrowsingState> {};

} // namespace perfetto

#endif  // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOWNLOADS_MOJOM_SHARED_H_