| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ipc/mojo/async_handle_waiter.h" | 5 #include "ipc/mojo/async_handle_waiter.h" |
| 6 | 6 |
| 7 #include "base/atomic_ref_count.h" | 7 #include "base/atomic_ref_count.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "mojo/edk/embedder/embedder.h" | 13 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
| 14 | 14 |
| 15 namespace IPC { | 15 namespace IPC { |
| 16 namespace internal { | 16 namespace internal { |
| 17 | 17 |
| 18 class AsyncHandleWaiterContextTraits { | 18 class AsyncHandleWaiterContextTraits { |
| 19 public: | 19 public: |
| 20 static void Destruct(const AsyncHandleWaiter::Context* context); | 20 static void Destruct(const AsyncHandleWaiter::Context* context); |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 // The thread-safe part of |AsyncHandleWaiter|. | 23 // The thread-safe part of |AsyncHandleWaiter|. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 void AsyncHandleWaiterContextTraits::Destruct( | 143 void AsyncHandleWaiterContextTraits::Destruct( |
| 144 const AsyncHandleWaiter::Context* context) { | 144 const AsyncHandleWaiter::Context* context) { |
| 145 context->io_runner_->PostTask( | 145 context->io_runner_->PostTask( |
| 146 FROM_HERE, | 146 FROM_HERE, |
| 147 base::Bind(&base::DeletePointer<const AsyncHandleWaiter::Context>, | 147 base::Bind(&base::DeletePointer<const AsyncHandleWaiter::Context>, |
| 148 base::Unretained(context))); | 148 base::Unretained(context))); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace internal | 151 } // namespace internal |
| 152 } // namespace IPC | 152 } // namespace IPC |
| OLD | NEW |