blob: 3e220dc7832348187876b80d6a3d9c55bddb760f [file] [log] [blame]
// mojo/public/cpp/bindings/tests/extra_cpp_template_unittest.test-mojom.h is auto generated by mojom_bindings_generator.py, do not edit
// 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 MOJO_PUBLIC_CPP_BINDINGS_TESTS_EXTRA_CPP_TEMPLATE_UNITTEST_TEST_MOJOM_H_
#define MOJO_PUBLIC_CPP_BINDINGS_TESTS_EXTRA_CPP_TEMPLATE_UNITTEST_TEST_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <type_traits>
#include <utility>
#include "third_party/abseil-cpp/absl/types/optional.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 "mojo/public/cpp/bindings/tests/extra_cpp_template_unittest.test-mojom-shared.h"
#include "mojo/public/cpp/bindings/tests/extra_cpp_template_unittest.test-mojom-forward.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#ifdef KYTHE_IS_RUNNING
#pragma kythe_inline_metadata "Metadata comment"
#endif
namespace mojo {
namespace test {
namespace extra_cpp_template_unittest {
namespace mojom {
class ExtraCppInterfaceProxy;
template <typename ImplRefTraits>
class ExtraCppInterfaceStub;
class ExtraCppInterfaceRequestValidator;
// @generated_from: mojo.test.extra_cpp_template_unittest.mojom.ExtraCppInterface
class ExtraCppInterface
: public ExtraCppInterfaceInterfaceBase {
public:
static const char Name_[];
static std::pair<uint32_t, const void*> MessageToMethodInfo_(mojo::Message& message);
static const char* MessageToMethodName_(mojo::Message& message);
static constexpr uint32_t Version_ = 0;
static constexpr bool PassesAssociatedKinds_ = false;
static constexpr bool HasSyncMethods_ = false;
static constexpr bool HasUninterruptableMethods_ = false;
using Base_ = ExtraCppInterfaceInterfaceBase;
using Proxy_ = ExtraCppInterfaceProxy;
template <typename ImplRefTraits>
using Stub_ = ExtraCppInterfaceStub<ImplRefTraits>;
using RequestValidator_ = ExtraCppInterfaceRequestValidator;
using ResponseValidator_ = mojo::PassThroughFilter;
enum MethodMinVersions : uint32_t {
};
// crbug.com/1340245 - this causes binary size bloat on Fuchsia, and we're OK
// with not having this data in traces there.
#if !BUILDFLAG(IS_FUCHSIA)
#endif // !BUILDFLAG(IS_FUCHSIA)
virtual ~ExtraCppInterface() = default;
};
// @generated_from: mojo.test.extra_cpp_template_unittest.mojom.ExtraCppInterface
class ExtraCppInterfaceProxy
: public ExtraCppInterface {
public:
using InterfaceType = ExtraCppInterface;
explicit ExtraCppInterfaceProxy(mojo::MessageReceiverWithResponder* receiver);
private:
mojo::MessageReceiverWithResponder* receiver_;
};
class ExtraCppInterfaceStubDispatch {
public:
static bool Accept(ExtraCppInterface* impl, mojo::Message* message);
static bool AcceptWithResponder(
ExtraCppInterface* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ExtraCppInterface>>
class ExtraCppInterfaceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ExtraCppInterfaceStub() = default;
~ExtraCppInterfaceStub() override = default;
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 ExtraCppInterfaceStubDispatch::Accept(
ImplRefTraits::GetRawPointer(&sink_), message);
}
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ExtraCppInterfaceStubDispatch::AcceptWithResponder(
ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
}
private:
ImplPointerType sink_;
};
class ExtraCppInterfaceRequestValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
} // namespace mojom
} // namespace extra_cpp_template_unittest
} // namespace test
} // namespace mojo
namespace mojo {
} // namespace mojo
#endif // MOJO_PUBLIC_CPP_BINDINGS_TESTS_EXTRA_CPP_TEMPLATE_UNITTEST_TEST_MOJOM_H_
/* Metadata comment
eyJtZXRhIjogW3siZW5kIjogMTc2NiwgImJlZ2luIjogMTc0OSwgImVkZ2UiOiAiJS9reXRoZS9l
ZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZpbmVzIiwgInZuYW1lIjogeyJjb3Jw
dXMiOiAiY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJvbWl1bS9zcmMiLCAibGFuZ3VhZ2Ui
OiAibW9qb20iLCAic2lnbmF0dXJlIjogIm1vam8udGVzdC5leHRyYV9jcHBfdGVtcGxhdGVfdW5p
dHRlc3QubW9qb20uRXh0cmFDcHBJbnRlcmZhY2UifX1dLCAidHlwZSI6ICJreXRoZTAifQ==
*/