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

Side by Side Diff: mojo/public/cpp/bindings/lib/connector.cc

Issue 1801793003: Move mojo::{Wait,WaitMany}() to (the newly-added) mojo/public/cpp/system/wait.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months 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/message_pump/message_pump_mojo.cc ('k') | mojo/public/cpp/system/BUILD.gn » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/public/cpp/bindings/lib/connector.h" 5 #include "mojo/public/cpp/bindings/lib/connector.h"
6 6
7 #include "mojo/public/cpp/environment/logging.h" 7 #include "mojo/public/cpp/environment/logging.h"
8 #include "mojo/public/cpp/system/wait.h"
8 9
9 namespace mojo { 10 namespace mojo {
10 namespace internal { 11 namespace internal {
11 12
12 // ---------------------------------------------------------------------------- 13 // ----------------------------------------------------------------------------
13 14
14 Connector::Connector(ScopedMessagePipeHandle message_pipe, 15 Connector::Connector(ScopedMessagePipeHandle message_pipe,
15 const MojoAsyncWaiter* waiter) 16 const MojoAsyncWaiter* waiter)
16 : waiter_(waiter), 17 : waiter_(waiter),
17 message_pipe_(message_pipe.Pass()), 18 message_pipe_(message_pipe.Pass()),
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 195 }
195 196
196 void Connector::NotifyError() { 197 void Connector::NotifyError() {
197 error_ = true; 198 error_ = true;
198 CloseMessagePipe(); 199 CloseMessagePipe();
199 connection_error_handler_.Run(); 200 connection_error_handler_.Run();
200 } 201 }
201 202
202 } // namespace internal 203 } // namespace internal
203 } // namespace mojo 204 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/message_pump/message_pump_mojo.cc ('k') | mojo/public/cpp/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698