OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "mojo/edk/system/core.h" | 5 #include "mojo/system/core.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "mojo/edk/embedder/platform_shared_buffer.h" | 11 #include "mojo/embedder/platform_shared_buffer.h" |
12 #include "mojo/edk/embedder/platform_support.h" | 12 #include "mojo/embedder/platform_support.h" |
13 #include "mojo/edk/system/constants.h" | |
14 #include "mojo/edk/system/data_pipe.h" | |
15 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | |
16 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | |
17 #include "mojo/edk/system/dispatcher.h" | |
18 #include "mojo/edk/system/handle_signals_state.h" | |
19 #include "mojo/edk/system/local_data_pipe.h" | |
20 #include "mojo/edk/system/memory.h" | |
21 #include "mojo/edk/system/message_pipe.h" | |
22 #include "mojo/edk/system/message_pipe_dispatcher.h" | |
23 #include "mojo/edk/system/shared_buffer_dispatcher.h" | |
24 #include "mojo/edk/system/waiter.h" | |
25 #include "mojo/public/c/system/macros.h" | 13 #include "mojo/public/c/system/macros.h" |
| 14 #include "mojo/system/constants.h" |
| 15 #include "mojo/system/data_pipe.h" |
| 16 #include "mojo/system/data_pipe_consumer_dispatcher.h" |
| 17 #include "mojo/system/data_pipe_producer_dispatcher.h" |
| 18 #include "mojo/system/dispatcher.h" |
| 19 #include "mojo/system/handle_signals_state.h" |
| 20 #include "mojo/system/local_data_pipe.h" |
| 21 #include "mojo/system/memory.h" |
| 22 #include "mojo/system/message_pipe.h" |
| 23 #include "mojo/system/message_pipe_dispatcher.h" |
| 24 #include "mojo/system/shared_buffer_dispatcher.h" |
| 25 #include "mojo/system/waiter.h" |
26 | 26 |
27 namespace mojo { | 27 namespace mojo { |
28 namespace system { | 28 namespace system { |
29 | 29 |
30 // Implementation notes | 30 // Implementation notes |
31 // | 31 // |
32 // Mojo primitives are implemented by the singleton |Core| object. Most calls | 32 // Mojo primitives are implemented by the singleton |Core| object. Most calls |
33 // are for a "primary" handle (the first argument). |Core::GetDispatcher()| is | 33 // are for a "primary" handle (the first argument). |Core::GetDispatcher()| is |
34 // used to look up a |Dispatcher| object for a given handle. That object | 34 // used to look up a |Dispatcher| object for a given handle. That object |
35 // implements most primitives for that object. The wait primitives are not | 35 // implements most primitives for that object. The wait primitives are not |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 if (signals_states) { | 597 if (signals_states) { |
598 for (; i < num_handles; i++) | 598 for (; i < num_handles; i++) |
599 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); | 599 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); |
600 } | 600 } |
601 | 601 |
602 return rv; | 602 return rv; |
603 } | 603 } |
604 | 604 |
605 } // namespace system | 605 } // namespace system |
606 } // namespace mojo | 606 } // namespace mojo |
OLD | NEW |