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/bind.h" | 14 #include "base/bind.h" |
15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
21 #include "mojo/public/cpp/bindings/associated_group.h" | 21 #include "mojo/public/cpp/bindings/associated_group.h" |
22 #include "mojo/public/cpp/bindings/interface_endpoint_client.h" | 22 #include "mojo/public/cpp/bindings/interface_endpoint_client.h" |
23 #include "mojo/public/cpp/bindings/interface_id.h" | 23 #include "mojo/public/cpp/bindings/interface_id.h" |
24 #include "mojo/public/cpp/bindings/interface_ptr_info.h" | 24 #include "mojo/public/cpp/bindings/interface_ptr_info.h" |
25 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 25 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
26 #include "mojo/public/cpp/bindings/lib/filter_chain.h" | 26 #include "mojo/public/cpp/bindings/lib/filter_chain.h" |
27 #include "mojo/public/cpp/bindings/lib/message_header_validator.h" | |
28 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" | 27 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" |
29 #include "mojo/public/cpp/bindings/lib/router.h" | 28 #include "mojo/public/cpp/bindings/lib/router.h" |
| 29 #include "mojo/public/cpp/bindings/message_header_validator.h" |
30 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 30 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
31 | 31 |
32 namespace mojo { | 32 namespace mojo { |
33 namespace internal { | 33 namespace internal { |
34 | 34 |
35 template <typename Interface, bool use_multiplex_router> | 35 template <typename Interface, bool use_multiplex_router> |
36 class InterfacePtrState; | 36 class InterfacePtrState; |
37 | 37 |
38 // Uses a single-threaded, dedicated router. If |Interface| doesn't have any | 38 // Uses a single-threaded, dedicated router. If |Interface| doesn't have any |
39 // methods to pass associated interface pointers or requests, there won't be | 39 // methods to pass associated interface pointers or requests, there won't be |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 uint32_t version_; | 354 uint32_t version_; |
355 | 355 |
356 DISALLOW_COPY_AND_ASSIGN(InterfacePtrState); | 356 DISALLOW_COPY_AND_ASSIGN(InterfacePtrState); |
357 }; | 357 }; |
358 | 358 |
359 } // namespace internal | 359 } // namespace internal |
360 } // namespace mojo | 360 } // namespace mojo |
361 | 361 |
362 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ | 362 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_INTERFACE_PTR_STATE_H_ |
OLD | NEW |