chromium/out/Default/gen/third_party/blink/public/mojom/performance_manager/v8_detailed_memory_reporter.mojom-shared.h

// third_party/blink/public/mojom/performance_manager/v8_detailed_memory_reporter.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 THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERFORMANCE_MANAGER_V8_DETAILED_MEMORY_REPORTER_MOJOM_SHARED_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERFORMANCE_MANAGER_V8_DETAILED_MEMORY_REPORTER_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 "third_party/blink/public/mojom/performance_manager/v8_detailed_memory_reporter.mojom-shared-internal.h"
#include "third_party/blink/public/mojom/tokens/tokens.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"


#include "base/component_export.h"




namespace blink::mojom {
class PerContextV8MemoryUsageDataView;

class PerContextCanvasMemoryUsageDataView;

class PerIsolateV8MemoryUsageDataView;

class PerProcessV8MemoryUsageDataView;



}  // blink::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::blink::mojom::PerContextV8MemoryUsageDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::PerContextCanvasMemoryUsageDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::PerIsolateV8MemoryUsageDataView> {};

template <>
struct MojomTypeTraits<::blink::mojom::PerProcessV8MemoryUsageDataView> {};

}  // namespace internal
}  // namespace mojo


namespace blinkmojom  // blink::mojom

namespace std {

template <>
struct hash<::blink::mojom::V8DetailedMemoryReporter_Mode>
    : public mojo::internal::EnumHashImpl<::blink::mojom::V8DetailedMemoryReporter_Mode> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::blink::mojom::V8DetailedMemoryReporter_Mode, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PerContextV8MemoryUsageDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PerContextCanvasMemoryUsageDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PerIsolateV8MemoryUsageDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::blink::mojom::PerProcessV8MemoryUsageDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace blink::mojom {

inline void PerContextV8MemoryUsageDataView::GetTokenDataView(
    ::blink::mojom::ExecutionContextTokenDataView* output) {}
inline void PerContextV8MemoryUsageDataView::GetUrlDataView(
    mojo::StringDataView* output) {}


inline void PerContextCanvasMemoryUsageDataView::GetTokenDataView(
    ::blink::mojom::ExecutionContextTokenDataView* output) {}


inline void PerIsolateV8MemoryUsageDataView::GetContextsDataView(
    mojo::ArrayDataView<PerContextV8MemoryUsageDataView>* output) {}
inline void PerIsolateV8MemoryUsageDataView::GetCanvasContextsDataView(
    mojo::ArrayDataView<PerContextCanvasMemoryUsageDataView>* output) {}


inline void PerProcessV8MemoryUsageDataView::GetIsolatesDataView(
    mojo::ArrayDataView<PerIsolateV8MemoryUsageDataView>* output) {}



}  // blink::mojom

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

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::blink::mojom::V8DetailedMemoryReporter_Mode> {};

} // namespace perfetto

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_PERFORMANCE_MANAGER_V8_DETAILED_MEMORY_REPORTER_MOJOM_SHARED_H_