Index: ipc/ipc_message_attachment.h |
diff --git a/ipc/ipc_message_attachment.h b/ipc/ipc_message_attachment.h |
index 4ab69700355bfdc237268581eded2fa2290a4533..ba7f0e83f90567407ce69f59cd891b10492f1cbc 100644 |
--- a/ipc/ipc_message_attachment.h |
+++ b/ipc/ipc_message_attachment.h |
@@ -18,12 +18,15 @@ class IPC_EXPORT MessageAttachment |
: public base::RefCounted<MessageAttachment> { |
public: |
enum Type { |
- TYPE_PLATFORM_FILE, // The instance is |PlatformFileAttachment|. |
- TYPE_MOJO_MESSAGE_PIPE, // The instance is a mojo-based class. |
+ TYPE_PLATFORM_FILE, // The instance is |PlatformFileAttachment|. |
+ TYPE_MOJO_HANDLE, // The instance is |MojoHandleAttachment|. |
}; |
virtual Type GetType() const = 0; |
+ |
+#if defined(OS_POSIX) |
virtual base::PlatformFile TakePlatformFile() = 0; |
+#endif // OS_POSIX |
protected: |
friend class base::RefCounted<MessageAttachment>; |