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 "third_party/mojo/src/mojo/public/cpp/bindings/lib/connector.h" | 5 #include "mojo/public/cpp/bindings/lib/connector.h" |
6 | 6 |
7 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" | 7 #include "mojo/public/cpp/environment/logging.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace internal { | 10 namespace internal { |
11 | 11 |
12 // ---------------------------------------------------------------------------- | 12 // ---------------------------------------------------------------------------- |
13 | 13 |
14 Connector::Connector(ScopedMessagePipeHandle message_pipe, | 14 Connector::Connector(ScopedMessagePipeHandle message_pipe, |
15 const MojoAsyncWaiter* waiter) | 15 const MojoAsyncWaiter* waiter) |
16 : waiter_(waiter), | 16 : waiter_(waiter), |
17 message_pipe_(message_pipe.Pass()), | 17 message_pipe_(message_pipe.Pass()), |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if (!paused_) | 250 if (!paused_) |
251 WaitToReadMore(); | 251 WaitToReadMore(); |
252 } else { | 252 } else { |
253 error_ = true; | 253 error_ = true; |
254 connection_error_handler_.Run(); | 254 connection_error_handler_.Run(); |
255 } | 255 } |
256 } | 256 } |
257 | 257 |
258 } // namespace internal | 258 } // namespace internal |
259 } // namespace mojo | 259 } // namespace mojo |
OLD | NEW |