Call this method to invalidate all existing weak pointers.
| 317 | |
| 318 | // Call this method to invalidate all existing weak pointers. |
| 319 | void InvalidateWeakPtrs() { |
| 320 | DCHECK(ptr_); |
| 321 | weak_reference_owner_.Invalidate(); |
| 322 | } |
| 323 | |
| 324 | // Call this method to determine if any weak pointers exist. |
| 325 | bool HasWeakPtrs() const { |