summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Platform/IPC/Attachment.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/Platform/IPC/Attachment.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebKit2/Platform/IPC/Attachment.cpp')
-rw-r--r--Source/WebKit2/Platform/IPC/Attachment.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebKit2/Platform/IPC/Attachment.cpp b/Source/WebKit2/Platform/IPC/Attachment.cpp
index 9367b1ad2..2c5ce0e7b 100644
--- a/Source/WebKit2/Platform/IPC/Attachment.cpp
+++ b/Source/WebKit2/Platform/IPC/Attachment.cpp
@@ -26,8 +26,8 @@
#include "config.h"
#include "Attachment.h"
-#include "ArgumentDecoder.h"
-#include "ArgumentEncoder.h"
+#include "Decoder.h"
+#include "Encoder.h"
namespace IPC {
@@ -36,7 +36,7 @@ Attachment::Attachment()
{
}
-#if OS(DARWIN)
+#if OS(DARWIN) && !USE(UNIX_DOMAIN_SOCKETS)
Attachment::Attachment(mach_port_name_t port, mach_msg_type_name_t disposition)
: m_type(MachPortType)
, m_port(port)
@@ -50,12 +50,12 @@ void Attachment::release()
}
#endif
-void Attachment::encode(ArgumentEncoder& encoder) const
+void Attachment::encode(Encoder& encoder) const
{
- encoder.addAttachment(*this);
+ encoder.addAttachment(WTFMove(*const_cast<Attachment*>(this)));
}
-bool Attachment::decode(ArgumentDecoder& decoder, Attachment& attachment)
+bool Attachment::decode(Decoder& decoder, Attachment& attachment)
{
if (!decoder.removeAttachment(attachment))
return false;