Lines Matching refs:weak_ptr
470 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in UnixSocket() local
471 task_runner_->AddFileDescriptorWatch(sock_raw_.fd(), [weak_ptr] { in UnixSocket()
472 if (weak_ptr) in UnixSocket()
473 weak_ptr->OnEvent(); in UnixSocket()
517 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in DoConnect() local
518 task_runner_->PostTask([weak_ptr] { in DoConnect()
519 if (weak_ptr) in DoConnect()
520 weak_ptr->OnEvent(); in DoConnect()
635 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in Shutdown() local
638 task_runner_->PostTask([weak_ptr] { in Shutdown()
639 if (weak_ptr) in Shutdown()
640 weak_ptr->event_listener_->OnDisconnect(weak_ptr.get()); in Shutdown()
643 task_runner_->PostTask([weak_ptr] { in Shutdown()
644 if (weak_ptr) in Shutdown()
645 weak_ptr->event_listener_->OnConnect(weak_ptr.get(), false); in Shutdown()
692 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in NotifyConnectionState() local
693 task_runner_->PostTask([weak_ptr, success] { in NotifyConnectionState()
694 if (weak_ptr) in NotifyConnectionState()
695 weak_ptr->event_listener_->OnConnect(weak_ptr.get(), success); in NotifyConnectionState()