chromium/out/Default/gen/components/services/heap_profiling/public/mojom/heap_profiling_client.mojom-shared.h

// components/services/heap_profiling/public/mojom/heap_profiling_client.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 COMPONENTS_SERVICES_HEAP_PROFILING_PUBLIC_MOJOM_HEAP_PROFILING_CLIENT_MOJOM_SHARED_H_
#define COMPONENTS_SERVICES_HEAP_PROFILING_PUBLIC_MOJOM_HEAP_PROFILING_CLIENT_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 "components/services/heap_profiling/public/mojom/heap_profiling_client.mojom-shared-internal.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"






namespace heap_profiling::mojom {
class ProfilingParamsDataView;

class HeapProfileSampleDataView;

class HeapProfileDataView;



}  // heap_profiling::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::heap_profiling::mojom::ProfilingParamsDataView> {};

template <>
struct MojomTypeTraits<::heap_profiling::mojom::HeapProfileSampleDataView> {};

template <>
struct MojomTypeTraits<::heap_profiling::mojom::HeapProfileDataView> {};

}  // namespace internal
}  // namespace mojo


namespace heap_profiling::mojom {


enum class StackMode : int32_t {};

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


enum class AllocatorType : int32_t {};

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

ProfilingClientPtrDataView;
ProfilingClientRequestDataView;
ProfilingClientAssociatedPtrInfoDataView;
ProfilingClientAssociatedRequestDataView;


class ProfilingParamsDataView {};


class HeapProfileSampleDataView {};


class HeapProfileDataView {};


}  // heap_profiling::mojom

namespace std {

template <>
struct hash<::heap_profiling::mojom::StackMode>
    : public mojo::internal::EnumHashImpl<::heap_profiling::mojom::StackMode> {};

template <>
struct hash<::heap_profiling::mojom::AllocatorType>
    : public mojo::internal::EnumHashImpl<::heap_profiling::mojom::AllocatorType> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::heap_profiling::mojom::StackMode, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::heap_profiling::mojom::AllocatorType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::heap_profiling::mojom::ProfilingParamsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::heap_profiling::mojom::HeapProfileSampleDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::heap_profiling::mojom::HeapProfileDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace heap_profiling::mojom {



inline void HeapProfileSampleDataView::GetStackDataView(
    mojo::ArrayDataView<uint64_t>* output) {}


inline void HeapProfileDataView::GetSamplesDataView(
    mojo::ArrayDataView<HeapProfileSampleDataView>* output) {}
inline void HeapProfileDataView::GetStringsDataView(
    mojo::MapDataView<uint64_t, mojo::StringDataView>* output) {}



}  // heap_profiling::mojom

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

namespace perfetto {

template <>
struct  TraceFormatTraits<::heap_profiling::mojom::StackMode> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::heap_profiling::mojom::AllocatorType> {};

} // namespace perfetto

#endif  // COMPONENTS_SERVICES_HEAP_PROFILING_PUBLIC_MOJOM_HEAP_PROFILING_CLIENT_MOJOM_SHARED_H_