OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ |
6 #define MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ | 6 #define MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 #include <unordered_map> | 10 #include <unordered_map> |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // All other fields below must only be accessed on the I/O thread, i.e., the | 290 // All other fields below must only be accessed on the I/O thread, i.e., the |
291 // thread on which core_->io_task_runner() runs tasks. | 291 // thread on which core_->io_task_runner() runs tasks. |
292 | 292 |
293 // Channels to children during handshake. | 293 // Channels to children during handshake. |
294 NodeMap pending_children_; | 294 NodeMap pending_children_; |
295 | 295 |
296 // Indicates whether this object should delete itself on IO thread shutdown. | 296 // Indicates whether this object should delete itself on IO thread shutdown. |
297 // Must only be accessed from the IO thread. | 297 // Must only be accessed from the IO thread. |
298 bool destroy_on_io_thread_shutdown_ = false; | 298 bool destroy_on_io_thread_shutdown_ = false; |
299 | 299 |
300 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_NACL) | 300 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_NACL_SFI) |
301 // Broker for sync shared buffer creation (non-Mac posix-only) in children. | 301 // Broker for sync shared buffer creation (non-Mac posix-only) in children. |
302 std::unique_ptr<Broker> broker_; | 302 std::unique_ptr<Broker> broker_; |
303 #endif | 303 #endif |
304 | 304 |
305 #if defined(OS_MACOSX) && !defined(OS_IOS) | 305 #if defined(OS_MACOSX) && !defined(OS_IOS) |
306 base::Lock mach_port_relay_lock_; | 306 base::Lock mach_port_relay_lock_; |
307 // Relay for transferring mach ports to/from children. | 307 // Relay for transferring mach ports to/from children. |
308 std::unique_ptr<MachPortRelay> mach_port_relay_; | 308 std::unique_ptr<MachPortRelay> mach_port_relay_; |
309 #endif | 309 #endif |
310 | 310 |
311 DISALLOW_COPY_AND_ASSIGN(NodeController); | 311 DISALLOW_COPY_AND_ASSIGN(NodeController); |
312 }; | 312 }; |
313 | 313 |
314 } // namespace edk | 314 } // namespace edk |
315 } // namespace mojo | 315 } // namespace mojo |
316 | 316 |
317 #endif // MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ | 317 #endif // MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ |
OLD | NEW |