#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "mojo/public/cpp/bindings/message_header_validator.h"
#include "mojo/public/cpp/bindings/lib/array_internal.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_context.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
namespace mojo {
namespace {
bool IsValidMessageHeader(const internal::MessageHeader* header,
internal::ValidationContext* validation_context) { … }
}
MessageHeaderValidator::MessageHeaderValidator()
: … { … }
MessageHeaderValidator::MessageHeaderValidator(const std::string& description)
: … { … }
void MessageHeaderValidator::SetDescription(const std::string& description) { … }
bool MessageHeaderValidator::Accept(Message* message) { … }
}