chromium/out/Default/gen/components/performance_manager/public/mojom/web_memory.mojom-shared.h

// components/performance_manager/public/mojom/web_memory.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_PERFORMANCE_MANAGER_PUBLIC_MOJOM_WEB_MEMORY_MOJOM_SHARED_H_
#define COMPONENTS_PERFORMANCE_MANAGER_PUBLIC_MOJOM_WEB_MEMORY_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/performance_manager/public/mojom/web_memory.mojom-shared-internal.h"



#include "base/component_export.h"




namespace performance_manager::mojom {
class WebMemoryAttributionDataView;

class WebMemoryUsageDataView;

class WebMemoryBreakdownEntryDataView;

class WebMemoryMeasurementDataView;



}  // performance_manager::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::performance_manager::mojom::WebMemoryAttributionDataView> {};

template <>
struct MojomTypeTraits<::performance_manager::mojom::WebMemoryUsageDataView> {};

template <>
struct MojomTypeTraits<::performance_manager::mojom::WebMemoryBreakdownEntryDataView> {};

template <>
struct MojomTypeTraits<::performance_manager::mojom::WebMemoryMeasurementDataView> {};

}  // namespace internal
}  // namespace mojo


namespace performance_managermojom  // performance_manager::mojom

namespace std {

template <>
struct hash<::performance_manager::mojom::WebMemoryAttribution_Scope>
    : public mojo::internal::EnumHashImpl<::performance_manager::mojom::WebMemoryAttribution_Scope> {};

template <>
struct hash<::performance_manager::mojom::WebMemoryMeasurement_Mode>
    : public mojo::internal::EnumHashImpl<::performance_manager::mojom::WebMemoryMeasurement_Mode> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::performance_manager::mojom::WebMemoryAttribution_Scope, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::performance_manager::mojom::WebMemoryMeasurement_Mode, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::performance_manager::mojom::WebMemoryAttributionDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::performance_manager::mojom::WebMemoryUsageDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::performance_manager::mojom::WebMemoryBreakdownEntryDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::performance_manager::mojom::WebMemoryMeasurementDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace performance_manager::mojom {

inline void WebMemoryAttributionDataView::GetUrlDataView(
    mojo::StringDataView* output) {}
inline void WebMemoryAttributionDataView::GetSrcDataView(
    mojo::StringDataView* output) {}
inline void WebMemoryAttributionDataView::GetIdDataView(
    mojo::StringDataView* output) {}




inline void WebMemoryBreakdownEntryDataView::GetMemoryDataView(
    WebMemoryUsageDataView* output) {}
inline void WebMemoryBreakdownEntryDataView::GetCanvasMemoryDataView(
    WebMemoryUsageDataView* output) {}
inline void WebMemoryBreakdownEntryDataView::GetAttributionDataView(
    mojo::ArrayDataView<WebMemoryAttributionDataView>* output) {}


inline void WebMemoryMeasurementDataView::GetBreakdownDataView(
    mojo::ArrayDataView<WebMemoryBreakdownEntryDataView>* output) {}
inline void WebMemoryMeasurementDataView::GetDetachedMemoryDataView(
    WebMemoryUsageDataView* output) {}
inline void WebMemoryMeasurementDataView::GetSharedMemoryDataView(
    WebMemoryUsageDataView* output) {}
inline void WebMemoryMeasurementDataView::GetBlinkMemoryDataView(
    WebMemoryUsageDataView* output) {}



}  // performance_manager::mojom

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

namespace perfetto {

template <>
struct COMPONENT_EXPORT(PERFORMANCE_MANAGER_PUBLIC_MOJOM_SHARED) TraceFormatTraits<::performance_manager::mojom::WebMemoryAttribution_Scope> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(PERFORMANCE_MANAGER_PUBLIC_MOJOM_SHARED) TraceFormatTraits<::performance_manager::mojom::WebMemoryMeasurement_Mode> {};

} // namespace perfetto

#endif  // COMPONENTS_PERFORMANCE_MANAGER_PUBLIC_MOJOM_WEB_MEMORY_MOJOM_SHARED_H_