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/system/slave_connection_manager.h" | 5 #include "mojo/edk/system/slave_connection_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "mojo/edk/system/connection_manager_messages.h" | 14 #include "mojo/edk/system/connection_manager_messages.h" |
15 #include "mojo/edk/system/message_in_transit.h" | 15 #include "mojo/edk/system/message_in_transit.h" |
16 #include "mojo/edk/util/make_unique.h" | 16 #include "mojo/edk/util/make_unique.h" |
17 | 17 |
18 using mojo::embedder::ScopedPlatformHandle; | 18 using mojo::platform::ScopedPlatformHandle; |
19 using mojo::platform::TaskRunner; | 19 using mojo::platform::TaskRunner; |
20 using mojo::util::MakeUnique; | 20 using mojo::util::MakeUnique; |
21 using mojo::util::MutexLocker; | 21 using mojo::util::MutexLocker; |
22 using mojo::util::RefPtr; | 22 using mojo::util::RefPtr; |
23 | 23 |
24 namespace mojo { | 24 namespace mojo { |
25 namespace system { | 25 namespace system { |
26 | 26 |
27 // SlaveConnectionManager ------------------------------------------------------ | 27 // SlaveConnectionManager ------------------------------------------------------ |
28 | 28 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 } | 341 } |
342 | 342 |
343 void SlaveConnectionManager::AssertOnPrivateThread() const { | 343 void SlaveConnectionManager::AssertOnPrivateThread() const { |
344 // This should only be called after |Init()| and before |Shutdown()|. | 344 // This should only be called after |Init()| and before |Shutdown()|. |
345 DCHECK(private_thread_.message_loop()); | 345 DCHECK(private_thread_.message_loop()); |
346 DCHECK_EQ(base::MessageLoop::current(), private_thread_.message_loop()); | 346 DCHECK_EQ(base::MessageLoop::current(), private_thread_.message_loop()); |
347 } | 347 } |
348 | 348 |
349 } // namespace system | 349 } // namespace system |
350 } // namespace mojo | 350 } // namespace mojo |
OLD | NEW |