| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BINDINGS_LIB_ROUTER_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ |
| 6 #define MOJO_PUBLIC_BINDINGS_LIB_ROUTER_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "mojo/public/bindings/lib/connector.h" | 10 #include "mojo/public/cpp/bindings/lib/connector.h" |
| 11 #include "mojo/public/bindings/lib/shared_data.h" | 11 #include "mojo/public/cpp/bindings/lib/shared_data.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace internal { | 14 namespace internal { |
| 15 | 15 |
| 16 class Router : public MessageReceiver { | 16 class Router : public MessageReceiver { |
| 17 public: | 17 public: |
| 18 // The Router takes ownership of |message_pipe|. | 18 // The Router takes ownership of |message_pipe|. |
| 19 explicit Router(ScopedMessagePipeHandle message_pipe, | 19 explicit Router(ScopedMessagePipeHandle message_pipe, |
| 20 MojoAsyncWaiter* waiter = GetDefaultAsyncWaiter()); | 20 MojoAsyncWaiter* waiter = GetDefaultAsyncWaiter()); |
| 21 virtual ~Router(); | 21 virtual ~Router(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 SharedData<Router*> weak_self_; | 63 SharedData<Router*> weak_self_; |
| 64 MessageReceiver* incoming_receiver_; | 64 MessageReceiver* incoming_receiver_; |
| 65 HandleIncomingMessageThunk thunk_; | 65 HandleIncomingMessageThunk thunk_; |
| 66 ResponderMap responders_; | 66 ResponderMap responders_; |
| 67 uint64_t next_request_id_; | 67 uint64_t next_request_id_; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace internal | 70 } // namespace internal |
| 71 } // namespace mojo | 71 } // namespace mojo |
| 72 | 72 |
| 73 #endif // MOJO_PUBLIC_BINDINGS_LIB_ROUTER_H_ | 73 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ |
| OLD | NEW |