Home
last modified time | relevance | path

Searched refs:weak_factory_ (Results 1 – 2 of 2) sorted by relevance

/external/chromium/base/memory/
Dscoped_callback_factory.h47 explicit ScopedCallbackFactory(T* obj) : weak_factory_(obj) { in ScopedCallbackFactory()
53 weak_factory_.GetWeakPtr(), method); in NewCallback()
60 weak_factory_.GetWeakPtr(), method); in NewCallback()
67 weak_factory_.GetWeakPtr(), method); in NewCallback()
75 weak_factory_.GetWeakPtr(), method); in NewCallback()
83 weak_factory_.GetWeakPtr(), method); in NewCallback()
92 weak_factory_.GetWeakPtr(), method); in NewCallback()
95 void RevokeAll() { weak_factory_.InvalidateWeakPtrs(); } in RevokeAll()
96 bool HasPendingCallbacks() const { return weak_factory_.HasWeakPtrs(); } in HasPendingCallbacks()
128 WeakPtrFactory<T> weak_factory_; variable
/external/chromium/base/
Dtask.h86 explicit ScopedRunnableMethodFactory(T* object) : weak_factory_(object) { in ScopedRunnableMethodFactory()
92 weak_factory_.GetWeakPtr(), method, MakeTuple()); in NewRunnableMethod()
98 weak_factory_.GetWeakPtr(), method, MakeTuple(a)); in NewRunnableMethod()
105 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b)); in NewRunnableMethod()
114 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c)); in NewRunnableMethod()
124 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d)); in NewRunnableMethod()
135 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d, e)); in NewRunnableMethod()
138 void RevokeAll() { weak_factory_.InvalidateWeakPtrs(); } in RevokeAll()
140 bool empty() const { return !weak_factory_.HasWeakPtrs(); } in empty()
175 base::WeakPtrFactory<T> weak_factory_;