| 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_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> // For |std::swap()|. | 10 #include <algorithm> // For |std::swap()|. |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "mojo/public/cpp/bindings/associated_group.h" | 19 #include "mojo/public/cpp/bindings/associated_group.h" |
| 20 #include "mojo/public/cpp/bindings/callback.h" | 20 #include "mojo/public/cpp/bindings/callback.h" |
| 21 #include "mojo/public/cpp/bindings/interface_ptr_info.h" | 21 #include "mojo/public/cpp/bindings/interface_ptr_info.h" |
| 22 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 22 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
| 23 #include "mojo/public/cpp/bindings/lib/filter_chain.h" | 23 #include "mojo/public/cpp/bindings/lib/filter_chain.h" |
| 24 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" | 24 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" |
| 25 #include "mojo/public/cpp/bindings/lib/interface_id.h" | 25 #include "mojo/public/cpp/bindings/lib/interface_id.h" |
| 26 #include "mojo/public/cpp/bindings/lib/message_header_validator.h" | 26 #include "mojo/public/cpp/bindings/lib/message_header_validator.h" |
| 27 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" | 27 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" |
| 28 #include "mojo/public/cpp/bindings/lib/router.h" | 28 #include "mojo/public/cpp/bindings/lib/router.h" |
| 29 #include "mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h" | 29 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
| 30 | 30 |
| 31 namespace mojo { | 31 namespace mojo { |
| 32 namespace internal { | 32 namespace internal { |
| 33 | 33 |
| 34 template <typename Interface, bool use_multiplex_router> | 34 template <typename Interface, bool use_multiplex_router> |
| 35 class InterfacePtrState; | 35 class InterfacePtrState; |
| 36 | 36 |
| 37 // Uses a single-threaded, dedicated router. If |Interface| doesn't have any | 37 // Uses a single-threaded, dedicated router. If |Interface| doesn't have any |
| 38 // methods to pass associated interface pointers or requests, there won't be | 38 // methods to pass associated interface pointers or requests, there won't be |
| 39 // multiple interfaces running on the underlying message pipe. In that case, we | 39 // multiple interfaces running on the underlying message pipe. In that case, we |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 346 |
| 347 uint32_t version_; | 347 uint32_t version_; |
| 348 | 348 |
| 349 DISALLOW_COPY_AND_ASSIGN(InterfacePtrState); | 349 DISALLOW_COPY_AND_ASSIGN(InterfacePtrState); |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 } // namespace internal | 352 } // namespace internal |
| 353 } // namespace mojo | 353 } // namespace mojo |
| 354 | 354 |
| 355 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ | 355 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ |
| OLD | NEW |