#include "mojo/public/cpp/bindings/lib/handle_serialization.h"
#include "base/numerics/safe_conversions.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/pending_receiver_state.h"
namespace mojo {
namespace internal {
void SerializeHandle(ScopedHandle handle, Message& message, Handle_Data& data) { … }
void SerializeInterfaceInfo(ScopedMessagePipeHandle handle,
uint32_t version,
Message& message,
Interface_Data& data) { … }
void SerializeAssociatedEndpoint(ScopedInterfaceEndpointHandle handle,
Message& message,
AssociatedEndpointHandle_Data& data) { … }
void SerializeAssociatedInterfaceInfo(ScopedInterfaceEndpointHandle handle,
uint32_t version,
Message& message,
AssociatedInterface_Data& data) { … }
ScopedHandle DeserializeHandle(const Handle_Data& data, Message& message) { … }
void DeserializeHandleAsReceiver(const Handle_Data& data,
Message& message,
PendingReceiverState& receiver_state) { … }
ScopedInterfaceEndpointHandle DeserializeAssociatedEndpointHandle(
const AssociatedEndpointHandle_Data& data,
Message& message) { … }
}
}