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_ASSOCIATED_GROUP_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" | 11 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" |
12 #include "mojo/public/cpp/bindings/associated_interface_request.h" | 12 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
| 13 #include "mojo/public/cpp/bindings/bindings_export.h" |
13 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 14 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
14 | 15 |
15 namespace mojo { | 16 namespace mojo { |
16 | 17 |
17 class AssociatedGroupController; | 18 class AssociatedGroupController; |
18 | 19 |
19 // AssociatedGroup refers to all the interface endpoints running at one end of a | 20 // AssociatedGroup refers to all the interface endpoints running at one end of a |
20 // message pipe. It is used to create associated interfaces for that message | 21 // message pipe. It is used to create associated interfaces for that message |
21 // pipe. | 22 // pipe. |
22 // It is thread safe and cheap to make copies. | 23 // It is thread safe and cheap to make copies. |
23 class AssociatedGroup { | 24 class MOJO_CPP_BINDINGS_EXPORT AssociatedGroup { |
24 public: | 25 public: |
25 // Configuration used by CreateAssociatedInterface(). Please see the comments | 26 // Configuration used by CreateAssociatedInterface(). Please see the comments |
26 // of that method for more details. | 27 // of that method for more details. |
27 enum AssociatedInterfaceConfig { WILL_PASS_PTR, WILL_PASS_REQUEST }; | 28 enum AssociatedInterfaceConfig { WILL_PASS_PTR, WILL_PASS_REQUEST }; |
28 | 29 |
29 AssociatedGroup(); | 30 AssociatedGroup(); |
30 AssociatedGroup(const AssociatedGroup& other); | 31 AssociatedGroup(const AssociatedGroup& other); |
31 | 32 |
32 ~AssociatedGroup(); | 33 ~AssociatedGroup(); |
33 | 34 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void CreateEndpointHandlePair( | 82 void CreateEndpointHandlePair( |
82 ScopedInterfaceEndpointHandle* local_endpoint, | 83 ScopedInterfaceEndpointHandle* local_endpoint, |
83 ScopedInterfaceEndpointHandle* remote_endpoint); | 84 ScopedInterfaceEndpointHandle* remote_endpoint); |
84 | 85 |
85 scoped_refptr<AssociatedGroupController> controller_; | 86 scoped_refptr<AssociatedGroupController> controller_; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace mojo | 89 } // namespace mojo |
89 | 90 |
90 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ | 91 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_ |
OLD | NEW |