| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "mojo/public/cpp/bindings/pipe_control_message_handler_delegate.h" | 30 #include "mojo/public/cpp/bindings/pipe_control_message_handler_delegate.h" |
| 31 #include "mojo/public/cpp/bindings/pipe_control_message_proxy.h" | 31 #include "mojo/public/cpp/bindings/pipe_control_message_proxy.h" |
| 32 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 32 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class SingleThreadTaskRunner; | 35 class SingleThreadTaskRunner; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace mojo { | 38 namespace mojo { |
| 39 | 39 |
| 40 class AssociatedGroup; | |
| 41 | |
| 42 namespace internal { | 40 namespace internal { |
| 43 | 41 |
| 44 // MultiplexRouter supports routing messages for multiple interfaces over a | 42 // MultiplexRouter supports routing messages for multiple interfaces over a |
| 45 // single message pipe. | 43 // single message pipe. |
| 46 // | 44 // |
| 47 // It is created on the thread where the master interface of the message pipe | 45 // It is created on the thread where the master interface of the message pipe |
| 48 // lives. Although it is ref-counted, it is guarateed to be destructed on the | 46 // lives. Although it is ref-counted, it is guarateed to be destructed on the |
| 49 // same thread. | 47 // same thread. |
| 50 // Some public methods are only allowed to be called on the creating thread; | 48 // Some public methods are only allowed to be called on the creating thread; |
| 51 // while the others are safe to call from any threads. Please see the method | 49 // while the others are safe to call from any threads. Please see the method |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 260 |
| 263 bool testing_mode_; | 261 bool testing_mode_; |
| 264 | 262 |
| 265 DISALLOW_COPY_AND_ASSIGN(MultiplexRouter); | 263 DISALLOW_COPY_AND_ASSIGN(MultiplexRouter); |
| 266 }; | 264 }; |
| 267 | 265 |
| 268 } // namespace internal | 266 } // namespace internal |
| 269 } // namespace mojo | 267 } // namespace mojo |
| 270 | 268 |
| 271 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ | 269 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MULTIPLEX_ROUTER_H_ |
| OLD | NEW |