#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;
}
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 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) { … }
class ProfilingClientInterfaceBase { … };
ProfilingClientPtrDataView;
ProfilingClientRequestDataView;
ProfilingClientAssociatedPtrInfoDataView;
ProfilingClientAssociatedRequestDataView;
class ProfilingParamsDataView { … };
class HeapProfileSampleDataView { … };
class HeapProfileDataView { … };
}
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 mojo {
namespace internal {
Serializer< ::heap_profiling::mojom::StackMode, MaybeConstUserType>;
}
namespace internal {
Serializer< ::heap_profiling::mojom::AllocatorType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::heap_profiling::mojom::ProfilingParamsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::heap_profiling::mojom::HeapProfileSampleDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::heap_profiling::mojom::HeapProfileDataView, MaybeConstUserType>;
}
}
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) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::heap_profiling::mojom::StackMode> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::heap_profiling::mojom::AllocatorType> { … };
}
#endif