| 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 <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 18 #include "base/task_runner.h" | 18 #include "base/task_runner.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "ipc/ipc_channel.h" | 20 #include "ipc/ipc_channel.h" |
| 21 #include "ipc/ipc_channel_factory.h" | 21 #include "ipc/ipc_channel_factory.h" |
| 22 #include "ipc/ipc_export.h" | 22 #include "ipc/ipc_export.h" |
| 23 #include "ipc/mojo/ipc_message_pipe_reader.h" | 23 #include "ipc/mojo/ipc_message_pipe_reader.h" |
| 24 #include "ipc/mojo/ipc_mojo_bootstrap.h" | 24 #include "ipc/mojo/ipc_mojo_bootstrap.h" |
| 25 #include "mojo/edk/embedder/scoped_platform_handle.h" | |
| 26 #include "mojo/public/cpp/system/core.h" | 25 #include "mojo/public/cpp/system/core.h" |
| 27 | 26 |
| 28 namespace IPC { | 27 namespace IPC { |
| 29 | 28 |
| 30 // Mojo-based IPC::Channel implementation over a Mojo message pipe. | 29 // Mojo-based IPC::Channel implementation over a Mojo message pipe. |
| 31 // | 30 // |
| 32 // ChannelMojo builds a Mojo MessagePipe using the provided message pipe | 31 // ChannelMojo builds a Mojo MessagePipe using the provided message pipe |
| 33 // |handle| and builds an associated interface for each direction on the | 32 // |handle| and builds an associated interface for each direction on the |
| 34 // channel. | 33 // channel. |
| 35 // | 34 // |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool waiting_connect_; | 115 bool waiting_connect_; |
| 117 | 116 |
| 118 base::WeakPtrFactory<ChannelMojo> weak_factory_; | 117 base::WeakPtrFactory<ChannelMojo> weak_factory_; |
| 119 | 118 |
| 120 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); | 119 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace IPC | 122 } // namespace IPC |
| 124 | 123 |
| 125 #endif // IPC_IPC_CHANNEL_MOJO_H_ | 124 #endif // IPC_IPC_CHANNEL_MOJO_H_ |
| OLD | NEW |