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 "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "mojo/edk/embedder/embedder.h" | 8 #include "mojo/edk/embedder/embedder.h" |
9 | 9 |
10 using mojo::embedder::ScopedPlatformHandle; | 10 using mojo::platform::ScopedPlatformHandle; |
11 using mojo::platform::TaskRunner; | 11 using mojo::platform::TaskRunner; |
12 using mojo::util::RefPtr; | 12 using mojo::util::RefPtr; |
13 | 13 |
14 namespace mojo { | 14 namespace mojo { |
15 namespace test { | 15 namespace test { |
16 | 16 |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 ScopedIPCSupportHelper::ScopedIPCSupportHelper() {} | 19 ScopedIPCSupportHelper::ScopedIPCSupportHelper() {} |
20 | 20 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 helper_.OnShutdownCompleteImpl(); | 105 helper_.OnShutdownCompleteImpl(); |
106 } | 106 } |
107 | 107 |
108 void ScopedSlaveIPCSupport::OnMasterDisconnect() { | 108 void ScopedSlaveIPCSupport::OnMasterDisconnect() { |
109 if (!on_master_disconnect_.is_null()) | 109 if (!on_master_disconnect_.is_null()) |
110 on_master_disconnect_.Run(); | 110 on_master_disconnect_.Run(); |
111 } | 111 } |
112 | 112 |
113 } // namespace test | 113 } // namespace test |
114 } // namespace mojo | 114 } // namespace mojo |
OLD | NEW |