Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: ipc/ipc_message_attachment.h

Issue 866223005: IPC: Add MojoHandleAttachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing windows build again... Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_message.cc ('k') | ipc/ipc_message_attachment_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
« no previous file with comments | « ipc/ipc_message.cc ('k') | ipc/ipc_message_attachment_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698