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

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

Issue 1426343002: EDK: Move mutex.*, cond_var.*, and thread_annotations.h to //mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 5 years, 1 month 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/channel_manager.h ('k') | mojo/edk/system/cond_var.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/channel_manager.h" 5 #include "mojo/edk/system/channel_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 "mojo/edk/system/channel.h" 11 #include "mojo/edk/system/channel.h"
12 #include "mojo/edk/system/channel_endpoint.h" 12 #include "mojo/edk/system/channel_endpoint.h"
13 #include "mojo/edk/system/message_pipe_dispatcher.h" 13 #include "mojo/edk/system/message_pipe_dispatcher.h"
14 14
15 using mojo::util::MakeRefCounted; 15 using mojo::util::MakeRefCounted;
16 using mojo::util::MutexLocker;
16 using mojo::util::RefPtr; 17 using mojo::util::RefPtr;
17 18
18 namespace mojo { 19 namespace mojo {
19 namespace system { 20 namespace system {
20 21
21 namespace { 22 namespace {
22 23
23 // TODO(vtl): |channel| should be an rvalue reference, but that currently 24 // TODO(vtl): |channel| should be an rvalue reference, but that currently
24 // doesn't work with base::Bind. 25 // doesn't work with base::Bind.
25 void ShutdownChannelHelper( 26 void ShutdownChannelHelper(
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 CreateChannelOnIOThreadHelper(channel_id, platform_handle.Pass(), 200 CreateChannelOnIOThreadHelper(channel_id, platform_handle.Pass(),
200 std::move(bootstrap_channel_endpoint)); 201 std::move(bootstrap_channel_endpoint));
201 if (callback_thread_task_runner) 202 if (callback_thread_task_runner)
202 embedder::PlatformPostTask(callback_thread_task_runner.get(), callback); 203 embedder::PlatformPostTask(callback_thread_task_runner.get(), callback);
203 else 204 else
204 callback.Run(); 205 callback.Run();
205 } 206 }
206 207
207 } // namespace system 208 } // namespace system
208 } // namespace mojo 209 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/channel_manager.h ('k') | mojo/edk/system/cond_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698