Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: mojo/edk/system/slave_connection_manager.cc

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/slave_connection_manager.h ('k') | mojo/edk/system/transport_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/edk/system/slave_connection_manager.h ('k') | mojo/edk/system/transport_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698