| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_IPC_CHANNEL_MOJO_H_ | 5 #ifndef IPC_IPC_CHANNEL_MOJO_H_ |
| 6 #define IPC_IPC_CHANNEL_MOJO_H_ | 6 #define IPC_IPC_CHANNEL_MOJO_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Channel implementation | 69 // Channel implementation |
| 70 bool Connect() override; | 70 bool Connect() override; |
| 71 void Pause() override; | 71 void Pause() override; |
| 72 void Unpause(bool flush) override; | 72 void Unpause(bool flush) override; |
| 73 void Flush() override; | 73 void Flush() override; |
| 74 void Close() override; | 74 void Close() override; |
| 75 bool Send(Message* message) override; | 75 bool Send(Message* message) override; |
| 76 base::ProcessId GetPeerPID() const override; | 76 base::ProcessId GetPeerPID() const override; |
| 77 base::ProcessId GetSelfPID() const override; | 77 base::ProcessId GetSelfPID() const override; |
| 78 Channel::AssociatedInterfaceSupport* GetAssociatedInterfaceSupport() override; | 78 Channel::AssociatedInterfaceSupport* GetAssociatedInterfaceSupport() override; |
| 79 void SendEventToSignal(mojo::common::mojom::EventPtr event) override; |
| 79 | 80 |
| 80 #if defined(OS_POSIX) && !defined(OS_NACL_SFI) | 81 #if defined(OS_POSIX) && !defined(OS_NACL_SFI) |
| 81 int GetClientFileDescriptor() const override; | 82 int GetClientFileDescriptor() const override; |
| 82 base::ScopedFD TakeClientFileDescriptor() override; | 83 base::ScopedFD TakeClientFileDescriptor() override; |
| 83 #endif // defined(OS_POSIX) && !defined(OS_NACL_SFI) | 84 #endif // defined(OS_POSIX) && !defined(OS_NACL_SFI) |
| 84 | 85 |
| 85 // These access protected API of IPC::Message, which has ChannelMojo | 86 // These access protected API of IPC::Message, which has ChannelMojo |
| 86 // as a friend class. | 87 // as a friend class. |
| 87 static MojoResult WriteToMessageAttachmentSet( | 88 static MojoResult WriteToMessageAttachmentSet( |
| 88 base::Optional<std::vector<mojom::SerializedHandlePtr>> handle_buffer, | 89 base::Optional<std::vector<mojom::SerializedHandlePtr>> handle_buffer, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 associated_interfaces_; | 134 associated_interfaces_; |
| 134 | 135 |
| 135 base::WeakPtrFactory<ChannelMojo> weak_factory_; | 136 base::WeakPtrFactory<ChannelMojo> weak_factory_; |
| 136 | 137 |
| 137 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); | 138 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace IPC | 141 } // namespace IPC |
| 141 | 142 |
| 142 #endif // IPC_IPC_CHANNEL_MOJO_H_ | 143 #endif // IPC_IPC_CHANNEL_MOJO_H_ |
| OLD | NEW |