| 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 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_ |
| 6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_ |
| 7 | 7 |
| 8 #include "third_party/mojo/src/mojo/public/c/environment/async_waiter.h" | 8 #include "mojo/public/c/environment/async_waiter.h" |
| 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h" | 9 #include "mojo/public/cpp/bindings/callback.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/message.h" | 10 #include "mojo/public/cpp/bindings/message.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/environment/environment.h" | 11 #include "mojo/public/cpp/environment/environment.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | 12 #include "mojo/public/cpp/system/core.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 class ErrorHandler; | 15 class ErrorHandler; |
| 16 | 16 |
| 17 namespace internal { | 17 namespace internal { |
| 18 | 18 |
| 19 // The Connector class is responsible for performing read/write operations on a | 19 // The Connector class is responsible for performing read/write operations on a |
| 20 // MessagePipe. It writes messages it receives through the MessageReceiver | 20 // MessagePipe. It writes messages it receives through the MessageReceiver |
| 21 // interface that it subclasses, and it forwards messages it reads through the | 21 // interface that it subclasses, and it forwards messages it reads through the |
| 22 // MessageReceiver interface assigned as its incoming receiver. | 22 // MessageReceiver interface assigned as its incoming receiver. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // use this flag to allow for the Connector to be destroyed as a side-effect | 132 // use this flag to allow for the Connector to be destroyed as a side-effect |
| 133 // of dispatching an incoming message. | 133 // of dispatching an incoming message. |
| 134 bool* destroyed_flag_; | 134 bool* destroyed_flag_; |
| 135 | 135 |
| 136 MOJO_DISALLOW_COPY_AND_ASSIGN(Connector); | 136 MOJO_DISALLOW_COPY_AND_ASSIGN(Connector); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace internal | 139 } // namespace internal |
| 140 } // namespace mojo | 140 } // namespace mojo |
| 141 | 141 |
| 142 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_ | 142 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_CONNECTOR_H_ |
| OLD | NEW |