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 <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/containers/stack_container.h" | 12 #include "base/containers/stack_container.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/rand_util.h" | 18 #include "base/rand_util.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "crypto/random.h" | 21 #include "crypto/random.h" |
22 #include "mojo/edk/embedder/embedder.h" | 22 #include "mojo/edk/embedder/embedder.h" |
23 #include "mojo/edk/embedder/embedder_internal.h" | 23 #include "mojo/edk/embedder/embedder_internal.h" |
24 #include "mojo/edk/embedder/platform_shared_buffer.h" | 24 #include "mojo/edk/embedder/platform_shared_buffer.h" |
25 #include "mojo/edk/system/async_waiter.h" | 25 #include "mojo/edk/system/async_waiter.h" |
26 #include "mojo/edk/system/channel.h" | 26 #include "mojo/edk/system/channel.h" |
27 #include "mojo/edk/system/configuration.h" | 27 #include "mojo/edk/system/configuration.h" |
28 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | 28 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" |
29 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | 29 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 std::unique_ptr<NodeController> node_controller) { | 958 std::unique_ptr<NodeController> node_controller) { |
959 // It's OK to leak this reference. At this point we know the IO loop is still | 959 // It's OK to leak this reference. At this point we know the IO loop is still |
960 // running, and we know the NodeController will observe its eventual | 960 // running, and we know the NodeController will observe its eventual |
961 // destruction. This tells the NodeController to delete itself when that | 961 // destruction. This tells the NodeController to delete itself when that |
962 // happens. | 962 // happens. |
963 node_controller.release()->DestroyOnIOThreadShutdown(); | 963 node_controller.release()->DestroyOnIOThreadShutdown(); |
964 } | 964 } |
965 | 965 |
966 } // namespace edk | 966 } // namespace edk |
967 } // namespace mojo | 967 } // namespace mojo |
OLD | NEW |