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

Side by Side Diff: mojo/public/cpp/bindings/strong_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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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_STRONG_BINDING_SET_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_SET_H_
7
8 #include "mojo/public/cpp/bindings/binding_set.h"
9 #include "mojo/public/cpp/bindings/unique_ptr_impl_ref_traits.h"
10
11 namespace mojo {
12
13 // This class manages a set of bindings. When the pipe a binding is bound to is
14 // disconnected, the binding is automatically destroyed and removed from the
15 // set, and the interface implementation is deleted. When the StrongBindingSet
16 // is destructed, all outstanding bindings in the set are destroyed and all the
17 // bound interface implementations are automatically deleted.
18 template <typename Interface, typename ContextType = void>
xhwang 2017/02/16 03:54:49 The comment above is copied from media::StrongBind
xhwang 2017/02/16 04:03:07 Nevermind, I guess user of this class has to look
19 using StrongBindingSet =
20 BindingSetBase<Interface,
21 Binding<Interface, UniquePtrImplRefTraits<Interface>>,
22 ContextType>;
23
24 } // namespace mojo
25
26 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698