OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IPC_MOJO_IPC_MOJO_HANDLE_ATTACHMENT_H_ | 5 #ifndef IPC_MOJO_IPC_MOJO_HANDLE_ATTACHMENT_H_ |
6 #define IPC_MOJO_IPC_MOJO_HANDLE_ATTACHMENT_H_ | 6 #define IPC_MOJO_IPC_MOJO_HANDLE_ATTACHMENT_H_ |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "ipc/ipc_export.h" | 9 #include "ipc/ipc_export.h" |
10 #include "ipc/ipc_message_attachment.h" | 10 #include "ipc/ipc_message_attachment.h" |
11 #include "third_party/mojo/src/mojo/public/cpp/system/handle.h" | 11 #include "mojo/public/cpp/system/handle.h" |
12 | 12 |
13 namespace IPC { | 13 namespace IPC { |
14 | 14 |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 // A MessageAttachment that holds a MojoHandle. | 17 // A MessageAttachment that holds a MojoHandle. |
18 // * On the sending side, every Mojo handle is a MessagePipe. This is because | 18 // * On the sending side, every Mojo handle is a MessagePipe. This is because |
19 // any platform files are wrapped by PlatformFileAttachment. | 19 // any platform files are wrapped by PlatformFileAttachment. |
20 // * On the receiving side, the handle can be either MessagePipe or wrapped | 20 // * On the receiving side, the handle can be either MessagePipe or wrapped |
21 // platform file: All files, not only MessagePipes are wrapped as a | 21 // platform file: All files, not only MessagePipes are wrapped as a |
(...skipping 19 matching lines...) Expand all Loading... |
41 ~MojoHandleAttachment() override; | 41 ~MojoHandleAttachment() override; |
42 mojo::ScopedHandle handle_; | 42 mojo::ScopedHandle handle_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(MojoHandleAttachment); | 44 DISALLOW_COPY_AND_ASSIGN(MojoHandleAttachment); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace internal | 47 } // namespace internal |
48 } // namespace IPC | 48 } // namespace IPC |
49 | 49 |
50 #endif // IPC_MOJO_IPC_MOJO_HANDLE_ATTACHMENT_H_ | 50 #endif // IPC_MOJO_IPC_MOJO_HANDLE_ATTACHMENT_H_ |
OLD | NEW |