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/edk/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_channel_pair.h" | 11 #include "mojo/edk/embedder/platform_channel_pair.h" |
12 #include "mojo/edk/embedder/platform_shared_buffer.h" | 12 #include "mojo/edk/embedder/platform_shared_buffer.h" |
13 #include "mojo/edk/embedder/platform_support.h" | 13 #include "mojo/edk/embedder/platform_support.h" |
14 #include "mojo/edk/system/async_waiter.h" | 14 #include "mojo/edk/system/async_waiter.h" |
15 #include "mojo/edk/system/configuration.h" | 15 #include "mojo/edk/system/configuration.h" |
16 #include "mojo/edk/system/data_pipe.h" | 16 #include "mojo/edk/system/data_pipe.h" |
17 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | 17 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" |
18 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | 18 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" |
19 #include "mojo/edk/system/dispatcher.h" | 19 #include "mojo/edk/system/dispatcher.h" |
20 #include "mojo/edk/system/handle_signals_state.h" | 20 #include "mojo/edk/system/handle_signals_state.h" |
21 #include "mojo/edk/system/message_pipe_dispatcher.h" | 21 #include "mojo/edk/system/message_pipe_dispatcher.h" |
22 #include "mojo/edk/system/shared_buffer_dispatcher.h" | 22 #include "mojo/edk/system/shared_buffer_dispatcher.h" |
23 #include "mojo/edk/system/waiter.h" | 23 #include "mojo/edk/system/waiter.h" |
24 #include "third_party/mojo/src/mojo/public/c/system/macros.h" | 24 #include "mojo/public/c/system/macros.h" |
25 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 25 #include "mojo/public/cpp/system/macros.h" |
26 | 26 |
27 namespace mojo { | 27 namespace mojo { |
28 namespace edk { | 28 namespace edk { |
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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 if (signals_states) { | 590 if (signals_states) { |
591 for (; i < num_handles; i++) | 591 for (; i < num_handles; i++) |
592 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); | 592 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); |
593 } | 593 } |
594 | 594 |
595 return rv; | 595 return rv; |
596 } | 596 } |
597 | 597 |
598 } // namespace edk | 598 } // namespace edk |
599 } // namespace mojo | 599 } // namespace mojo |
OLD | NEW |