chromium/out/Default/gen/content/browser/tracing/trace_report/trace_report.mojom-shared.h

// content/browser/tracing/trace_report/trace_report.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 CONTENT_BROWSER_TRACING_TRACE_REPORT_TRACE_REPORT_MOJOM_SHARED_H_
#define CONTENT_BROWSER_TRACING_TRACE_REPORT_TRACE_REPORT_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 "content/browser/tracing/trace_report/trace_report.mojom-shared-internal.h"
#include "mojo/public/mojom/base/big_buffer.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "mojo/public/mojom/base/token.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"






namespace trace_report::mojom {
class ClientTraceReportDataView;

class ScenarioDataView;



}  // trace_report::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::trace_report::mojom::ClientTraceReportDataView> {};

template <>
struct MojomTypeTraits<::trace_report::mojom::ScenarioDataView> {};

}  // namespace internal
}  // namespace mojo


namespace trace_report::mojom {


enum class ReportUploadState : int32_t {};

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


enum class SkipUploadReason : int32_t {};

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

TraceReportHandlerFactoryPtrDataView;
TraceReportHandlerFactoryRequestDataView;
TraceReportHandlerFactoryAssociatedPtrInfoDataView;
TraceReportHandlerFactoryAssociatedRequestDataView;
class PageHandlerInterfaceBase {};

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

PagePtrDataView;
PageRequestDataView;
PageAssociatedPtrInfoDataView;
PageAssociatedRequestDataView;


class ClientTraceReportDataView {};


class ScenarioDataView {};


}  // trace_report::mojom

namespace std {

template <>
struct hash<::trace_report::mojom::ReportUploadState>
    : public mojo::internal::EnumHashImpl<::trace_report::mojom::ReportUploadState> {};

template <>
struct hash<::trace_report::mojom::SkipUploadReason>
    : public mojo::internal::EnumHashImpl<::trace_report::mojom::SkipUploadReason> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::trace_report::mojom::ReportUploadState, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::trace_report::mojom::SkipUploadReason, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::trace_report::mojom::ClientTraceReportDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::trace_report::mojom::ScenarioDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace trace_report::mojom {

inline void ClientTraceReportDataView::GetUuidDataView(
    ::mojo_base::mojom::TokenDataView* output) {}
inline void ClientTraceReportDataView::GetCreationTimeDataView(
    ::mojo_base::mojom::TimeDataView* output) {}
inline void ClientTraceReportDataView::GetScenarioNameDataView(
    mojo::StringDataView* output) {}
inline void ClientTraceReportDataView::GetUploadRuleNameDataView(
    mojo::StringDataView* output) {}
inline void ClientTraceReportDataView::GetUploadTimeDataView(
    ::mojo_base::mojom::TimeDataView* output) {}


inline void ScenarioDataView::GetHashDataView(
    mojo::StringDataView* output) {}
inline void ScenarioDataView::GetScenarioNameDataView(
    mojo::StringDataView* output) {}



}  // trace_report::mojom

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

namespace perfetto {

template <>
struct  TraceFormatTraits<::trace_report::mojom::ReportUploadState> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::trace_report::mojom::SkipUploadReason> {};

} // namespace perfetto

#endif  // CONTENT_BROWSER_TRACING_TRACE_REPORT_TRACE_REPORT_MOJOM_SHARED_H_