| 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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ |
| 6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_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 "third_party/mojo/src/mojo/public/cpp/bindings/callback.h" | 10 #include "mojo/public/cpp/bindings/callback.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/connector.h" | 11 #include "mojo/public/cpp/bindings/lib/connector.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/filter_chain.h" | 12 #include "mojo/public/cpp/bindings/lib/filter_chain.h" |
| 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/shared_data.h" | 13 #include "mojo/public/cpp/bindings/lib/shared_data.h" |
| 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/thread_checker.h" | 14 #include "mojo/public/cpp/bindings/lib/thread_checker.h" |
| 15 #include "third_party/mojo/src/mojo/public/cpp/environment/environment.h" | 15 #include "mojo/public/cpp/environment/environment.h" |
| 16 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" | 16 #include "mojo/public/cpp/environment/logging.h" |
| 17 | 17 |
| 18 namespace mojo { | 18 namespace mojo { |
| 19 namespace internal { | 19 namespace internal { |
| 20 | 20 |
| 21 class Router : public MessageReceiverWithResponder { | 21 class Router : public MessageReceiverWithResponder { |
| 22 public: | 22 public: |
| 23 Router(ScopedMessagePipeHandle message_pipe, | 23 Router(ScopedMessagePipeHandle message_pipe, |
| 24 FilterChain filters, | 24 FilterChain filters, |
| 25 const MojoAsyncWaiter* waiter = Environment::GetDefaultAsyncWaiter()); | 25 const MojoAsyncWaiter* waiter = Environment::GetDefaultAsyncWaiter()); |
| 26 ~Router() override; | 26 ~Router() override; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // response. | 131 // response. |
| 132 ResponderMap responders_; | 132 ResponderMap responders_; |
| 133 uint64_t next_request_id_; | 133 uint64_t next_request_id_; |
| 134 bool testing_mode_; | 134 bool testing_mode_; |
| 135 ThreadChecker thread_checker_; | 135 ThreadChecker thread_checker_; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace internal | 138 } // namespace internal |
| 139 } // namespace mojo | 139 } // namespace mojo |
| 140 | 140 |
| 141 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ | 141 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ |
| OLD | NEW |