| 311 | ~WeakPtrFactory() { ptr_ = NULL; } |
| 312 | |
| 313 | WeakPtr<T> GetWeakPtr() { |
| 314 | DCHECK(ptr_); |
| 315 | return WeakPtr<T>(weak_reference_owner_.GetRef(), ptr_); |
| 316 | } |
| 317 | |
| 318 | // Call this method to invalidate all existing weak pointers. |
| 319 | void InvalidateWeakPtrs() { |
no outgoing calls
no test coverage detected