chromium/out/Default/gen/media/mojo/mojom/renderer.mojom.h

// media/mojo/mojom/renderer.mojom.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_MOJO_MOJOM_RENDERER_MOJOM_H_
#define MEDIA_MOJO_MOJOM_RENDERER_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 "media/mojo/mojom/renderer.mojom-features.h"  // IWYU pragma: export
#include "media/mojo/mojom/renderer.mojom-shared.h"  // IWYU pragma: export
#include "media/mojo/mojom/renderer.mojom-forward.h"  // IWYU pragma: export
#include "media/mojo/mojom/demuxer_stream.mojom-forward.h"
#include "media/mojo/mojom/media_types.mojom.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "mojo/public/mojom/base/unguessable_token.mojom.h"
#include "services/network/public/mojom/site_for_cookies.mojom.h"
#include "services/network/public/mojom/storage_access_api.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.h"
#include "url/mojom/url.mojom.h"
#include "url/mojom/origin.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 media::mojom {

class RendererProxy;

template <typename ImplRefTraits>
class RendererStub;

class RendererRequestValidator;
class RendererResponseValidator;


class Renderer
    : public RendererInterfaceBase {};

class RendererClientProxy;

template <typename ImplRefTraits>
class RendererClientStub;

class RendererClientRequestValidator;


class RendererClient
    : public RendererClientInterfaceBase {};



class  RendererProxy
    : public Renderer {};



class  RendererClientProxy
    : public RendererClient {};
class  RendererStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<Renderer>>
class RendererStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  RendererStub() = default;
  ~RendererStub() 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  RendererClientStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<RendererClient>>
class RendererClientStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  RendererClientStub() = default;
  ~RendererClientStub() 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  RendererRequestValidator : public mojo::MessageReceiver {};
class  RendererClientRequestValidator : public mojo::MessageReceiver {};
class  RendererResponseValidator : public mojo::MessageReceiver {};








class  MediaUrlParams {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, MediaUrlParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, MediaUrlParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, MediaUrlParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, MediaUrlParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}

template <typename StructPtrType>
MediaUrlParamsPtr MediaUrlParams::Clone() const {}

template <typename T, MediaUrlParams::EnableIfSame<T>*>
bool MediaUrlParams::Equals(const T& other_struct) const {}

template <typename T, MediaUrlParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // media::mojom

namespace mojo {


template <>
struct  StructTraits<::media::mojom::MediaUrlParams::DataView,
                                         ::media::mojom::MediaUrlParamsPtr> {
  static bool IsNull(const ::media::mojom::MediaUrlParamsPtr& input) { return !input; }
  static void SetToNull(::media::mojom::MediaUrlParamsPtr* output) { output->reset(); }

  static const decltype(::media::mojom::MediaUrlParams::media_url)& media_url(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->media_url;
  }

  static const decltype(::media::mojom::MediaUrlParams::site_for_cookies)& site_for_cookies(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->site_for_cookies;
  }

  static const decltype(::media::mojom::MediaUrlParams::top_frame_origin)& top_frame_origin(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->top_frame_origin;
  }

  static decltype(::media::mojom::MediaUrlParams::storage_access_api_status) storage_access_api_status(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->storage_access_api_status;
  }

  static decltype(::media::mojom::MediaUrlParams::allow_credentials) allow_credentials(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->allow_credentials;
  }

  static decltype(::media::mojom::MediaUrlParams::is_hls) is_hls(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->is_hls;
  }

  static const decltype(::media::mojom::MediaUrlParams::headers)& headers(
      const ::media::mojom::MediaUrlParamsPtr& input) {
    return input->headers;
  }

  static bool Read(::media::mojom::MediaUrlParams::DataView input, ::media::mojom::MediaUrlParamsPtr* output);
};

}  // namespace mojo

#endif  // MEDIA_MOJO_MOJOM_RENDERER_MOJOM_H_