| 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 <mojo/macros.h> |
| 8 |
| 7 #include <limits> | 9 #include <limits> |
| 8 #include <memory> | 10 #include <memory> |
| 9 #include <utility> | 11 #include <utility> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 13 #include "mojo/edk/embedder/platform_support.h" | 15 #include "mojo/edk/embedder/platform_support.h" |
| 14 #include "mojo/edk/platform/platform_shared_buffer.h" | 16 #include "mojo/edk/platform/platform_shared_buffer.h" |
| 15 #include "mojo/edk/platform/time_ticks.h" | 17 #include "mojo/edk/platform/time_ticks.h" |
| 16 #include "mojo/edk/system/async_waiter.h" | 18 #include "mojo/edk/system/async_waiter.h" |
| 17 #include "mojo/edk/system/configuration.h" | 19 #include "mojo/edk/system/configuration.h" |
| 18 #include "mojo/edk/system/data_pipe.h" | 20 #include "mojo/edk/system/data_pipe.h" |
| 19 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | 21 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" |
| 20 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | 22 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" |
| 21 #include "mojo/edk/system/dispatcher.h" | 23 #include "mojo/edk/system/dispatcher.h" |
| 22 #include "mojo/edk/system/handle_signals_state.h" | 24 #include "mojo/edk/system/handle_signals_state.h" |
| 23 #include "mojo/edk/system/handle_transport.h" | 25 #include "mojo/edk/system/handle_transport.h" |
| 24 #include "mojo/edk/system/memory.h" | 26 #include "mojo/edk/system/memory.h" |
| 25 #include "mojo/edk/system/message_pipe.h" | 27 #include "mojo/edk/system/message_pipe.h" |
| 26 #include "mojo/edk/system/message_pipe_dispatcher.h" | 28 #include "mojo/edk/system/message_pipe_dispatcher.h" |
| 27 #include "mojo/edk/system/shared_buffer_dispatcher.h" | 29 #include "mojo/edk/system/shared_buffer_dispatcher.h" |
| 28 #include "mojo/edk/system/wait_set_dispatcher.h" | 30 #include "mojo/edk/system/wait_set_dispatcher.h" |
| 29 #include "mojo/edk/system/waiter.h" | 31 #include "mojo/edk/system/waiter.h" |
| 30 #include "mojo/public/c/system/macros.h" | |
| 31 #include "mojo/public/cpp/system/macros.h" | 32 #include "mojo/public/cpp/system/macros.h" |
| 32 | 33 |
| 33 using mojo::platform::GetTimeTicks; | 34 using mojo::platform::GetTimeTicks; |
| 34 using mojo::platform::PlatformSharedBufferMapping; | 35 using mojo::platform::PlatformSharedBufferMapping; |
| 35 using mojo::util::MutexLocker; | 36 using mojo::util::MutexLocker; |
| 36 using mojo::util::RefPtr; | 37 using mojo::util::RefPtr; |
| 37 | 38 |
| 38 namespace mojo { | 39 namespace mojo { |
| 39 namespace system { | 40 namespace system { |
| 40 | 41 |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 if (signals_states) { | 899 if (signals_states) { |
| 899 for (; i < num_handles; i++) | 900 for (; i < num_handles; i++) |
| 900 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); | 901 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); |
| 901 } | 902 } |
| 902 | 903 |
| 903 return result; | 904 return result; |
| 904 } | 905 } |
| 905 | 906 |
| 906 } // namespace system | 907 } // namespace system |
| 907 } // namespace mojo | 908 } // namespace mojo |
| OLD | NEW |