| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "ipc/ipc_channel.h" | 13 #include "ipc/ipc_channel.h" |
| 14 #include "ipc/ipc_channel_factory.h" | 14 #include "ipc/ipc_channel_factory.h" |
| 15 #include "ipc/ipc_export.h" | 15 #include "ipc/ipc_export.h" |
| 16 #include "ipc/mojo/ipc_message_pipe_reader.h" | 16 #include "ipc/mojo/ipc_message_pipe_reader.h" |
| 17 #include "ipc/mojo/ipc_mojo_bootstrap.h" | 17 #include "ipc/mojo/ipc_mojo_bootstrap.h" |
| 18 #include "mojo/edk/embedder/channel_info_forward.h" | 18 #include "third_party/mojo/src/mojo/edk/embedder/channel_info_forward.h" |
| 19 #include "mojo/public/cpp/system/core.h" | 19 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" |
| 20 | 20 |
| 21 namespace IPC { | 21 namespace IPC { |
| 22 | 22 |
| 23 // Mojo-based IPC::Channel implementation over a platform handle. | 23 // Mojo-based IPC::Channel implementation over a platform handle. |
| 24 // | 24 // |
| 25 // ChannelMojo builds Mojo MessagePipe using underlying pipe given by | 25 // ChannelMojo builds Mojo MessagePipe using underlying pipe given by |
| 26 // "bootstrap" IPC::Channel which creates and owns platform pipe like | 26 // "bootstrap" IPC::Channel which creates and owns platform pipe like |
| 27 // named socket. The bootstrap Channel is used only for establishing | 27 // named socket. The bootstrap Channel is used only for establishing |
| 28 // the underlying connection. ChannelMojo takes its handle over once | 28 // the underlying connection. ChannelMojo takes its handle over once |
| 29 // the it is made and puts MessagePipe on it. | 29 // the it is made and puts MessagePipe on it. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 ScopedVector<Message> pending_messages_; | 149 ScopedVector<Message> pending_messages_; |
| 150 | 150 |
| 151 base::WeakPtrFactory<ChannelMojo> weak_factory_; | 151 base::WeakPtrFactory<ChannelMojo> weak_factory_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); | 153 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace IPC | 156 } // namespace IPC |
| 157 | 157 |
| 158 #endif // IPC_IPC_CHANNEL_MOJO_H_ | 158 #endif // IPC_IPC_CHANNEL_MOJO_H_ |
| OLD | NEW |