blob: 09fc681cd19bbef628ba38a40c4a45eff7ba5022 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_SERVICE_MANAGER_TESTS_SHUTDOWN_SHUTDOWN_TEST_MOJOM_BLINK_H_
#define SERVICES_SERVICE_MANAGER_TESTS_SHUTDOWN_SHUTDOWN_TEST_MOJOM_BLINK_H_
#include <stdint.h>
#include <limits>
#include <type_traits>
#include <utility>
#include "base/callback.h"
#include "base/macros.h"
#include "base/optional.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#if BUILDFLAG(MOJO_TRACE_ENABLED)
#include "base/trace_event/trace_event.h"
#endif
#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 "services/service_manager/tests/shutdown/shutdown.test-mojom-shared.h"
#include "services/service_manager/tests/shutdown/shutdown.test-mojom-blink-forward.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr_info.h"
#include "mojo/public/cpp/bindings/associated_interface_request.h"
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h"
#include "mojo/public/cpp/bindings/lib/native_enum_serialization.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#ifdef KYTHE_IS_RUNNING
#pragma kythe_inline_metadata "Metadata comment"
#endif
namespace service_manager {
namespace mojom {
namespace blink {
class ShutdownTestServiceProxy;
template <typename ImplRefTraits>
class ShutdownTestServiceStub;
class ShutdownTestServiceRequestValidator;
// @generated_from: service_manager.mojom.ShutdownTestService
class ShutdownTestService
: public ShutdownTestServiceInterfaceBase {
public:
static const char Name_[];
static constexpr uint32_t Version_ = 0;
static constexpr bool PassesAssociatedKinds_ = false;
static constexpr bool HasSyncMethods_ = false;
using Base_ = ShutdownTestServiceInterfaceBase;
using Proxy_ = ShutdownTestServiceProxy;
template <typename ImplRefTraits>
using Stub_ = ShutdownTestServiceStub<ImplRefTraits>;
using RequestValidator_ = ShutdownTestServiceRequestValidator;
using ResponseValidator_ = mojo::PassThroughFilter;
enum MethodMinVersions : uint32_t {
kSetClientMinVersion = 0,
kShutDownMinVersion = 0,
};
virtual ~ShutdownTestService() {}
// @generated_from: service_manager.mojom.ShutdownTestService.SetClient
virtual void SetClient(ShutdownTestClientPtr client) = 0;
// @generated_from: service_manager.mojom.ShutdownTestService.ShutDown
virtual void ShutDown() = 0;
};
class ShutdownTestClientProxy;
template <typename ImplRefTraits>
class ShutdownTestClientStub;
class ShutdownTestClientRequestValidator;
// @generated_from: service_manager.mojom.ShutdownTestClient
class ShutdownTestClient
: public ShutdownTestClientInterfaceBase {
public:
static const char Name_[];
static constexpr uint32_t Version_ = 0;
static constexpr bool PassesAssociatedKinds_ = false;
static constexpr bool HasSyncMethods_ = false;
using Base_ = ShutdownTestClientInterfaceBase;
using Proxy_ = ShutdownTestClientProxy;
template <typename ImplRefTraits>
using Stub_ = ShutdownTestClientStub<ImplRefTraits>;
using RequestValidator_ = ShutdownTestClientRequestValidator;
using ResponseValidator_ = mojo::PassThroughFilter;
enum MethodMinVersions : uint32_t {
};
virtual ~ShutdownTestClient() {}
};
class ShutdownTestClientControllerProxy;
template <typename ImplRefTraits>
class ShutdownTestClientControllerStub;
class ShutdownTestClientControllerRequestValidator;
class ShutdownTestClientControllerResponseValidator;
// @generated_from: service_manager.mojom.ShutdownTestClientController
class ShutdownTestClientController
: public ShutdownTestClientControllerInterfaceBase {
public:
static const char Name_[];
static constexpr uint32_t Version_ = 0;
static constexpr bool PassesAssociatedKinds_ = false;
static constexpr bool HasSyncMethods_ = false;
using Base_ = ShutdownTestClientControllerInterfaceBase;
using Proxy_ = ShutdownTestClientControllerProxy;
template <typename ImplRefTraits>
using Stub_ = ShutdownTestClientControllerStub<ImplRefTraits>;
using RequestValidator_ = ShutdownTestClientControllerRequestValidator;
using ResponseValidator_ = ShutdownTestClientControllerResponseValidator;
enum MethodMinVersions : uint32_t {
kConnectAndWaitMinVersion = 0,
};
virtual ~ShutdownTestClientController() {}
using ConnectAndWaitCallback = base::OnceCallback<void()>;
// @generated_from: service_manager.mojom.ShutdownTestClientController.ConnectAndWait
virtual void ConnectAndWait(ConnectAndWaitCallback callback) = 0;
};
class ShutdownTestServiceProxy
: public ShutdownTestService {
public:
using InterfaceType = ShutdownTestService;
explicit ShutdownTestServiceProxy(mojo::MessageReceiverWithResponder* receiver);
void SetClient(ShutdownTestClientPtr client) final;
void ShutDown() final;
private:
mojo::MessageReceiverWithResponder* receiver_;
};
class ShutdownTestClientProxy
: public ShutdownTestClient {
public:
using InterfaceType = ShutdownTestClient;
explicit ShutdownTestClientProxy(mojo::MessageReceiverWithResponder* receiver);
private:
mojo::MessageReceiverWithResponder* receiver_;
};
class ShutdownTestClientControllerProxy
: public ShutdownTestClientController {
public:
using InterfaceType = ShutdownTestClientController;
explicit ShutdownTestClientControllerProxy(mojo::MessageReceiverWithResponder* receiver);
void ConnectAndWait(ConnectAndWaitCallback callback) final;
private:
mojo::MessageReceiverWithResponder* receiver_;
};
class ShutdownTestServiceStubDispatch {
public:
static bool Accept(ShutdownTestService* impl, mojo::Message* message);
static bool AcceptWithResponder(
ShutdownTestService* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ShutdownTestService>>
class ShutdownTestServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ShutdownTestServiceStub() {}
~ShutdownTestServiceStub() override {}
void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
ImplPointerType& sink() { return sink_; }
bool Accept(mojo::Message* message) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ShutdownTestServiceStubDispatch::Accept(
ImplRefTraits::GetRawPointer(&sink_), message);
}
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ShutdownTestServiceStubDispatch::AcceptWithResponder(
ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
}
private:
ImplPointerType sink_;
};
class ShutdownTestClientStubDispatch {
public:
static bool Accept(ShutdownTestClient* impl, mojo::Message* message);
static bool AcceptWithResponder(
ShutdownTestClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ShutdownTestClient>>
class ShutdownTestClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ShutdownTestClientStub() {}
~ShutdownTestClientStub() override {}
void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
ImplPointerType& sink() { return sink_; }
bool Accept(mojo::Message* message) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ShutdownTestClientStubDispatch::Accept(
ImplRefTraits::GetRawPointer(&sink_), message);
}
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ShutdownTestClientStubDispatch::AcceptWithResponder(
ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
}
private:
ImplPointerType sink_;
};
class ShutdownTestClientControllerStubDispatch {
public:
static bool Accept(ShutdownTestClientController* impl, mojo::Message* message);
static bool AcceptWithResponder(
ShutdownTestClientController* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ShutdownTestClientController>>
class ShutdownTestClientControllerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ShutdownTestClientControllerStub() {}
~ShutdownTestClientControllerStub() override {}
void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
ImplPointerType& sink() { return sink_; }
bool Accept(mojo::Message* message) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ShutdownTestClientControllerStubDispatch::Accept(
ImplRefTraits::GetRawPointer(&sink_), message);
}
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ShutdownTestClientControllerStubDispatch::AcceptWithResponder(
ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
}
private:
ImplPointerType sink_;
};
class ShutdownTestServiceRequestValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
class ShutdownTestClientRequestValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
class ShutdownTestClientControllerRequestValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
class ShutdownTestClientControllerResponseValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
} // namespace blink
} // namespace mojom
} // namespace service_manager
namespace mojo {
} // namespace mojo
#endif // SERVICES_SERVICE_MANAGER_TESTS_SHUTDOWN_SHUTDOWN_TEST_MOJOM_BLINK_H_
/* Metadata comment
eyJtZXRhIjogW3siZW5kIjogMjM3NSwgImJlZ2luIjogMjM1NiwgImVkZ2UiOiAiJS9reXRoZS9l
ZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl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