#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include <stddef.h>
#include <stdint.h>
#include <tuple>
#include <utility>
#include "base/notreached.h"
#include "mojo/public/cpp/bindings/interface_endpoint_client.h"
#include "mojo/public/cpp/bindings/lib/message_fragment.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
namespace mojo {
namespace internal {
namespace {
bool ValidateControlRequestWithResponse(Message* message) { … }
bool ValidateControlRequestWithoutResponse(Message* message) { … }
}
bool ControlMessageHandler::IsControlMessage(const Message* message) { … }
ControlMessageHandler::ControlMessageHandler(InterfaceEndpointClient* owner,
uint32_t interface_version)
: … { … }
ControlMessageHandler::~ControlMessageHandler() { … }
bool ControlMessageHandler::Accept(Message* message) { … }
bool ControlMessageHandler::AcceptWithResponder(
Message* message,
std::unique_ptr<MessageReceiverWithStatus> responder) { … }
bool ControlMessageHandler::Run(
Message* message,
std::unique_ptr<MessageReceiverWithStatus> responder) { … }
bool ControlMessageHandler::RunOrClosePipe(Message* message) { … }
}
}