#ifndef CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MOJOM_H_
#define CHROME_COMMON_MEDIA_WEBRTC_LOGGING_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 "chrome/common/media/webrtc_logging.mojom-features.h"
#include "chrome/common/media/webrtc_logging.mojom-shared.h"
#include "chrome/common/media/webrtc_logging.mojom-forward.h"
#include "mojo/public/mojom/base/time.mojom.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"
namespace chrome::mojom {
class WebRtcLoggingClientProxy;
template <typename ImplRefTraits>
class WebRtcLoggingClientStub;
class WebRtcLoggingClientRequestValidator;
class WebRtcLoggingClient
: public WebRtcLoggingClientInterfaceBase { … };
class WebRtcLoggingAgentProxy;
template <typename ImplRefTraits>
class WebRtcLoggingAgentStub;
class WebRtcLoggingAgentRequestValidator;
class WebRtcLoggingAgent
: public WebRtcLoggingAgentInterfaceBase { … };
class WebRtcLoggingClientProxy
: public WebRtcLoggingClient { … };
class WebRtcLoggingAgentProxy
: public WebRtcLoggingAgent { … };
class WebRtcLoggingClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebRtcLoggingClient>>
class WebRtcLoggingClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebRtcLoggingClientStub() = default;
~WebRtcLoggingClientStub() 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 WebRtcLoggingAgentStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebRtcLoggingAgent>>
class WebRtcLoggingAgentStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebRtcLoggingAgentStub() = default;
~WebRtcLoggingAgentStub() 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 WebRtcLoggingClientRequestValidator : public mojo::MessageReceiver { … };
class WebRtcLoggingAgentRequestValidator : public mojo::MessageReceiver { … };
class WebRtcLoggingMessage { … };
template <typename T, WebRtcLoggingMessage::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebRtcLoggingMessage::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebRtcLoggingMessage::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebRtcLoggingMessage::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebRtcLoggingMessagePtr WebRtcLoggingMessage::Clone() const { … }
template <typename T, WebRtcLoggingMessage::EnableIfSame<T>*>
bool WebRtcLoggingMessage::Equals(const T& other_struct) const { … }
template <typename T, WebRtcLoggingMessage::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::chrome::mojom::WebRtcLoggingMessage::DataView,
::chrome::mojom::WebRtcLoggingMessagePtr> { … };
}
#endif