#ifndef IPC_HANDLE_ATTACHMENT_WIN_H_
#define IPC_HANDLE_ATTACHMENT_WIN_H_
#include <stdint.h>
#include "base/win/scoped_handle.h"
#include "ipc/handle_win.h"
#include "ipc/ipc_message_attachment.h"
#include "ipc/ipc_message_support_export.h"
namespace IPC {
namespace internal {
class IPC_MESSAGE_SUPPORT_EXPORT HandleAttachmentWin
: public MessageAttachment {
public:
explicit HandleAttachmentWin(const HANDLE& handle);
enum FromWire {
FROM_WIRE,
};
HandleAttachmentWin(const HANDLE& handle, FromWire from_wire);
Type GetType() const override;
HANDLE Take() { return handle_.Take(); }
private:
~HandleAttachmentWin() override;
base::win::ScopedHandle handle_;
};
}
}
#endif