Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: mojo/public/cpp/bindings/associated_binding_set.h

Issue 2692413002: Implements mojo::StrongBindingSet. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/associated_binding_set.h
diff --git a/mojo/public/cpp/bindings/associated_binding_set.h b/mojo/public/cpp/bindings/associated_binding_set.h
index 34ab88d6e98e0097443ba63f50339a3eda642be3..59600c64f3c9afaf534eb51f08fa9a8bdf23c486 100644
--- a/mojo/public/cpp/bindings/associated_binding_set.h
+++ b/mojo/public/cpp/bindings/associated_binding_set.h
@@ -12,10 +12,12 @@
namespace mojo {
-template <typename Interface>
-struct BindingSetTraits<AssociatedBinding<Interface>> {
+template <typename Interface, typename ImplRefTraits>
+struct BindingSetTraits<AssociatedBinding<Interface, ImplRefTraits>> {
using ProxyType = AssociatedInterfacePtr<Interface>;
using RequestType = AssociatedInterfaceRequest<Interface>;
+ using BindingType = AssociatedBinding<Interface, ImplRefTraits>;
+ using ImplPointerType = typename BindingType::ImplPointerType;
};
template <typename Interface, typename ContextType = void>

Powered by Google App Engine
This is Rietveld 408576698