Lines Matching defs:Subscription
31 // std::unique_ptr<base::CallbackList<void(const Foo&)>::Subscription>
55 // // Subscription gets deleted automatically and will deregister
64 // std::unique_ptr<base::CallbackList<void(const Foo&)>::Subscription>
77 class Subscription {
79 Subscription(CallbackListBase<CallbackType>* list,
85 ~Subscription() {
99 DISALLOW_COPY_AND_ASSIGN(Subscription);
103 // returned Subscription is destroyed, which must occur before the
105 std::unique_ptr<Subscription> Add(const CallbackType& cb) WARN_UNUSED_RESULT {
107 return std::unique_ptr<Subscription>(
108 new Subscription(this, callbacks_.insert(callbacks_.end(), cb)));