blob: 67177757b942ce590a657d33e804a9f547865cd7 [file] [log] [blame]
// weblayer/common/error_page_helper.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 WEBLAYER_COMMON_ERROR_PAGE_HELPER_MOJOM_H_
#define WEBLAYER_COMMON_ERROR_PAGE_HELPER_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 "weblayer/common/error_page_helper.mojom-shared.h"
#include "weblayer/common/error_page_helper.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 weblayer {
namespace mojom {
class ErrorPageHelperProxy;
template <typename ImplRefTraits>
class ErrorPageHelperStub;
class ErrorPageHelperRequestValidator;
// @generated_from: weblayer.mojom.ErrorPageHelper
class ErrorPageHelper
: public ErrorPageHelperInterfaceBase {
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_ = ErrorPageHelperInterfaceBase;
using Proxy_ = ErrorPageHelperProxy;
template <typename ImplRefTraits>
using Stub_ = ErrorPageHelperStub<ImplRefTraits>;
using RequestValidator_ = ErrorPageHelperRequestValidator;
using ResponseValidator_ = mojo::PassThroughFilter;
enum MethodMinVersions : uint32_t {
kDisableErrorPageHelperForNextErrorMinVersion = 0,
};
// 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)
struct DisableErrorPageHelperForNextError_Sym {
NOINLINE static void IPCSymbol();
};
#endif // !BUILDFLAG(IS_FUCHSIA)
virtual ~ErrorPageHelper() = default;
// @generated_from: weblayer.mojom.ErrorPageHelper.DisableErrorPageHelperForNextError
virtual void DisableErrorPageHelperForNextError() = 0;
};
// @generated_from: weblayer.mojom.ErrorPageHelper
class ErrorPageHelperProxy
: public ErrorPageHelper {
public:
using InterfaceType = ErrorPageHelper;
explicit ErrorPageHelperProxy(mojo::MessageReceiverWithResponder* receiver);
// @generated_from: weblayer.mojom.ErrorPageHelper.DisableErrorPageHelperForNextError
void DisableErrorPageHelperForNextError() final;
private:
mojo::MessageReceiverWithResponder* receiver_;
};
class ErrorPageHelperStubDispatch {
public:
static bool Accept(ErrorPageHelper* impl, mojo::Message* message);
static bool AcceptWithResponder(
ErrorPageHelper* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ErrorPageHelper>>
class ErrorPageHelperStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ErrorPageHelperStub() = default;
~ErrorPageHelperStub() 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 ErrorPageHelperStubDispatch::Accept(
ImplRefTraits::GetRawPointer(&sink_), message);
}
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return ErrorPageHelperStubDispatch::AcceptWithResponder(
ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
}
private:
ImplPointerType sink_;
};
class ErrorPageHelperRequestValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
} // namespace mojom
} // namespace weblayer
namespace mojo {
} // namespace mojo
#endif // WEBLAYER_COMMON_ERROR_PAGE_HELPER_MOJOM_H_
/* Metadata comment
eyJtZXRhIjogW3siZW5kIjogMTUyNCwgImJlZ2luIjogMTUwOSwgImVkZ2UiOiAiJS9reXRoZS9l
ZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZpbmVzIiwgInZuYW1lIjogeyJjb3Jw
dXMiOiAiY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJvbWl1bS9zcmMiLCAibGFuZ3VhZ2Ui
OiAibW9qb20iLCAic2lnbmF0dXJlIjogIndlYmxheWVyLm1vam9tLkVycm9yUGFnZUhlbHBlciJ9
fSwgeyJlbmQiOiAyODE1LCAiYmVnaW4iOiAyNzgxLCAiZWRnZSI6ICIlL2t5dGhlL2VkZ2UvZ2Vu
ZXJhdGVzIiwgInR5cGUiOiAiYW5jaG9yX2RlZmluZXMiLCAidm5hbWUiOiB7ImNvcnB1cyI6ICJj
aHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2Nocm9taXVtL3NyYyIsICJsYW5ndWFnZSI6ICJtb2pv
bSIsICJzaWduYXR1cmUiOiAid2VibGF5ZXIubW9qb20uRXJyb3JQYWdlSGVscGVyLkRpc2FibGVF
cnJvclBhZ2VIZWxwZXJGb3JOZXh0RXJyb3IifX0sIHsiZW5kIjogMzE5OSwgImJlZ2luIjogMzE2
NSwgImVkZ2UiOiAiJS9reXRoZS9lZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZp
bmVzIiwgInZuYW1lIjogeyJjb3JwdXMiOiAiY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJv
bWl1bS9zcmMiLCAibGFuZ3VhZ2UiOiAibW9qb20iLCAic2lnbmF0dXJlIjogIndlYmxheWVyLm1v
am9tLkVycm9yUGFnZUhlbHBlci5EaXNhYmxlRXJyb3JQYWdlSGVscGVyRm9yTmV4dEVycm9yIn19
XSwgInR5cGUiOiAia3l0aGUwIn0=
*/