Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: mojo/edk/system/node_controller.h

Issue 2264543003: Adds sync brokering to Windows EDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge test interface Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 using PeerNodeMap = 325 using PeerNodeMap =
326 std::unordered_map<ports::NodeName, 326 std::unordered_map<ports::NodeName,
327 std::pair<scoped_refptr<NodeChannel>, ports::PortRef>>; 327 std::pair<scoped_refptr<NodeChannel>, ports::PortRef>>;
328 PeerNodeMap pending_peers_; 328 PeerNodeMap pending_peers_;
329 329
330 // Indicates whether this object should delete itself on IO thread shutdown. 330 // Indicates whether this object should delete itself on IO thread shutdown.
331 // Must only be accessed from the IO thread. 331 // Must only be accessed from the IO thread.
332 bool destroy_on_io_thread_shutdown_ = false; 332 bool destroy_on_io_thread_shutdown_ = false;
333 333
334 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_NACL_SFI) 334 #if !defined(OS_MACOSX) && !defined(OS_NACL_SFI)
335 // Broker for sync shared buffer creation (non-Mac posix-only) in children. 335 // Broker for sync shared buffer creation in children.
336 std::unique_ptr<Broker> broker_; 336 std::unique_ptr<Broker> broker_;
337 #endif 337 #endif
338 338
339 #if defined(OS_MACOSX) && !defined(OS_IOS) 339 #if defined(OS_MACOSX) && !defined(OS_IOS)
340 base::Lock mach_port_relay_lock_; 340 base::Lock mach_port_relay_lock_;
341 // Relay for transferring mach ports to/from children. 341 // Relay for transferring mach ports to/from children.
342 std::unique_ptr<MachPortRelay> mach_port_relay_; 342 std::unique_ptr<MachPortRelay> mach_port_relay_;
343 #endif 343 #endif
344 344
345 DISALLOW_COPY_AND_ASSIGN(NodeController); 345 DISALLOW_COPY_AND_ASSIGN(NodeController);
346 }; 346 };
347 347
348 } // namespace edk 348 } // namespace edk
349 } // namespace mojo 349 } // namespace mojo
350 350
351 #endif // MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_ 351 #endif // MOJO_EDK_SYSTEM_NODE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698