Chromium Code Reviews| Index: mojo/public/cpp/bindings/strong_associated_binding_set.h |
| diff --git a/mojo/public/cpp/bindings/strong_associated_binding_set.h b/mojo/public/cpp/bindings/strong_associated_binding_set.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c4e765498b0b537e5e2f577576e8190d098b229b |
| --- /dev/null |
| +++ b/mojo/public/cpp/bindings/strong_associated_binding_set.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MOJO_PUBLIC_CPP_BINDINGS_STRONG_ASSOCIATED_BINDING_SET_H_ |
| +#define MOJO_PUBLIC_CPP_BINDINGS_STRONG_ASSOCIATED_BINDING_SET_H_ |
| + |
| +#include "mojo/public/cpp/bindings/associated_binding.h" |
| +#include "mojo/public/cpp/bindings/associated_binding_set.h" |
| +#include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| +#include "mojo/public/cpp/bindings/associated_interface_request.h" |
| +#include "mojo/public/cpp/bindings/binding_set.h" |
| +#include "mojo/public/cpp/bindings/unique_ptr_impl_ref_traits.h" |
| + |
| +namespace mojo { |
| + |
| +template <typename Interface, typename ContextType = void> |
| +using StrongAssociatedBindingSet = BindingSetBase< |
| + Interface, AssociatedBinding<Interface, UniquePtrImplRefTraits<Interface>>, |
|
cmumford
2017/03/07 20:24:23
Nit: clang-format wants param #2 on own line.
dmurph
2017/03/09 20:44:15
Done.
|
| + ContextType>; |
| + |
| +} // namespace mojo |
| + |
| +#endif // MOJO_PUBLIC_CPP_BINDINGS_STRONG_ASSOCIATED_BINDING_SET_H_ |