Lines Matching refs:Subscription
29 // std::unique_ptr<base::CallbackList<void(const Foo&)>::Subscription>
53 // // Subscription gets deleted automatically and will deregister
62 // std::unique_ptr<base::CallbackList<void(const Foo&)>::Subscription>
75 class Subscription {
77 Subscription(CallbackListBase<CallbackType>* list,
83 ~Subscription() {
97 DISALLOW_COPY_AND_ASSIGN(Subscription);
101 // returned Subscription is destroyed, which must occur before the
103 std::unique_ptr<Subscription> Add(const CallbackType& cb) WARN_UNUSED_RESULT {
105 return std::make_unique<Subscription>(
109 // Sets a callback which will be run when a subscription list is changed.