OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_BINDING_SET_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_BINDING_SET_H_ |
| 7 |
| 8 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 9 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| 10 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
| 11 #include "mojo/public/cpp/bindings/binding_set.h" |
| 12 |
| 13 namespace mojo { |
| 14 |
| 15 template <typename Interface> |
| 16 struct BindingSetTraits<AssociatedBinding<Interface>> { |
| 17 using ProxyType = AssociatedInterfacePtr<Interface>; |
| 18 using RequestType = AssociatedInterfaceRequest<Interface>; |
| 19 }; |
| 20 |
| 21 template <typename Interface> |
| 22 using AssociatedBindingSet = |
| 23 BindingSet<Interface, AssociatedBinding<Interface>>; |
| 24 |
| 25 } // namespace mojo |
| 26 |
| 27 #endif // MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_BINDING_SET_H_ |
OLD | NEW |