| 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/scoped_ipc_support.h" | 5 #include "ipc/mojo/scoped_ipc_support.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 11 #include "base/synchronization/condition_variable.h" | 14 #include "base/synchronization/condition_variable.h" |
| 12 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 13 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
| 14 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
| 15 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 18 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
| 16 #include "third_party/mojo/src/mojo/edk/embedder/process_delegate.h" | 19 #include "third_party/mojo/src/mojo/edk/embedder/process_delegate.h" |
| 17 | 20 |
| 18 namespace IPC { | 21 namespace IPC { |
| 19 | 22 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ScopedIPCSupport::ScopedIPCSupport( | 162 ScopedIPCSupport::ScopedIPCSupport( |
| 160 scoped_refptr<base::TaskRunner> io_thread_task_runner) { | 163 scoped_refptr<base::TaskRunner> io_thread_task_runner) { |
| 161 ipc_support_initializer.Get().Init(io_thread_task_runner); | 164 ipc_support_initializer.Get().Init(io_thread_task_runner); |
| 162 } | 165 } |
| 163 | 166 |
| 164 ScopedIPCSupport::~ScopedIPCSupport() { | 167 ScopedIPCSupport::~ScopedIPCSupport() { |
| 165 ipc_support_initializer.Get().ShutDown(false); | 168 ipc_support_initializer.Get().ShutDown(false); |
| 166 } | 169 } |
| 167 | 170 |
| 168 } // namespace IPC | 171 } // namespace IPC |
| OLD | NEW |