#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include <cstring>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/validation_context.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "mojo/public/cpp/bindings/message.h"
namespace mojo {
namespace internal {
namespace {
GenericValidationInfo FindGenericValidationInfo(
uint32_t name,
base::span<const std::pair<uint32_t, GenericValidationInfo>> info) { … }
GenericValidationInfo FindGenericValidationInfo(
uint32_t name,
base::span<const GenericValidationInfo> info) { … }
template <typename T>
bool ValidateRequestGenericT(Message* message,
const char* class_name,
base::span<const T> info) { … }
template <typename T>
bool ValidateResponseGenericT(Message* message,
const char* class_name,
base::span<const T> info) { … }
}
bool ValidateRequestGeneric(
Message* message,
const char* class_name,
base::span<const std::pair<uint32_t, GenericValidationInfo>> info) { … }
bool ValidateRequestGenericPacked(
Message* message,
const char* class_name,
base::span<const GenericValidationInfo> info) { … }
bool ValidateResponseGeneric(
Message* message,
const char* class_name,
base::span<const std::pair<uint32_t, GenericValidationInfo>> info) { … }
bool ValidateResponseGenericPacked(
Message* message,
const char* class_name,
base::span<const GenericValidationInfo> info) { … }
}
}