| 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 "mojo/edk/test/scoped_ipc_support.h" | 5 #include "mojo/edk/test/scoped_ipc_support.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 8 #include "mojo/edk/embedder/embedder.h" | 10 #include "mojo/edk/embedder/embedder.h" |
| 9 | 11 |
| 10 namespace mojo { | 12 namespace mojo { |
| 11 namespace edk { | 13 namespace edk { |
| 12 namespace test { | 14 namespace test { |
| 13 | 15 |
| 14 namespace internal { | 16 namespace internal { |
| 15 | 17 |
| 16 ScopedIPCSupportHelper::ScopedIPCSupportHelper() { | 18 ScopedIPCSupportHelper::ScopedIPCSupportHelper() { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 } | 36 } |
| 35 | 37 |
| 36 void ScopedIPCSupportHelper::OnShutdownCompleteImpl() { | 38 void ScopedIPCSupportHelper::OnShutdownCompleteImpl() { |
| 37 run_loop_.Quit(); | 39 run_loop_.Quit(); |
| 38 } | 40 } |
| 39 | 41 |
| 40 } // namespace internal | 42 } // namespace internal |
| 41 | 43 |
| 42 ScopedIPCSupport::ScopedIPCSupport( | 44 ScopedIPCSupport::ScopedIPCSupport( |
| 43 scoped_refptr<base::TaskRunner> io_thread_task_runner) { | 45 scoped_refptr<base::TaskRunner> io_thread_task_runner) { |
| 44 helper_.Init(this, io_thread_task_runner.Pass()); | 46 helper_.Init(this, std::move(io_thread_task_runner)); |
| 45 } | 47 } |
| 46 | 48 |
| 47 ScopedIPCSupport::~ScopedIPCSupport() { | 49 ScopedIPCSupport::~ScopedIPCSupport() { |
| 48 } | 50 } |
| 49 | 51 |
| 50 void ScopedIPCSupport::OnShutdownComplete() { | 52 void ScopedIPCSupport::OnShutdownComplete() { |
| 51 helper_.OnShutdownCompleteImpl(); | 53 helper_.OnShutdownCompleteImpl(); |
| 52 } | 54 } |
| 53 | 55 |
| 54 } // namespace test | 56 } // namespace test |
| 55 } // namespace edk | 57 } // namespace edk |
| 56 } // namespace mojo | 58 } // namespace mojo |
| OLD | NEW |