OLD | NEW |
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 Loading... |
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 |
OLD | NEW |