#ifndef SERVICES_TRACING_PUBLIC_MOJOM_TRACING_SERVICE_MOJOM_H_
#define SERVICES_TRACING_PUBLIC_MOJOM_TRACING_SERVICE_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/tracing/public/mojom/tracing_service.mojom-features.h"
#include "services/tracing/public/mojom/tracing_service.mojom-shared.h"
#include "services/tracing/public/mojom/tracing_service.mojom-forward.h"
#include "services/tracing/public/mojom/perfetto_service.mojom-forward.h"
#include "sandbox/policy/mojom/context.mojom-forward.h"
#include "sandbox/policy/mojom/sandbox.mojom.h"
#include "services/tracing/public/mojom/traced_process.mojom-forward.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "base/component_export.h"
constexpr ::sandbox::mojom::Sandbox kTracingSandbox = …;
namespace tracing::mojom {
class TracingServiceProxy;
template <typename ImplRefTraits>
class TracingServiceStub;
class TracingServiceRequestValidator;
class COMPONENT_EXPORT(TRACING_MOJOM) TracingService
: public TracingServiceInterfaceBase { … };
class COMPONENT_EXPORT(TRACING_MOJOM) TracingServiceProxy
: public TracingService { … };
class COMPONENT_EXPORT(TRACING_MOJOM) TracingServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<TracingService>>
class TracingServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
TracingServiceStub() = default;
~TracingServiceStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class COMPONENT_EXPORT(TRACING_MOJOM) TracingServiceRequestValidator : public mojo::MessageReceiver { … };
class COMPONENT_EXPORT(TRACING_MOJOM) ClientInfo { … };
template <typename T, ClientInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ClientInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ClientInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ClientInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ClientInfoPtr ClientInfo::Clone() const { … }
template <typename T, ClientInfo::EnableIfSame<T>*>
bool ClientInfo::Equals(const T& other_struct) const { … }
template <typename T, ClientInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct COMPONENT_EXPORT(TRACING_MOJOM) StructTraits<::tracing::mojom::ClientInfo::DataView,
::tracing::mojom::ClientInfoPtr> { … };
}
#endif