Lines Matching refs:UnixSocket
371 std::unique_ptr<UnixSocket> UnixSocket::Listen(const std::string& socket_name, in Listen()
384 std::unique_ptr<UnixSocket> UnixSocket::Listen(ScopedFile fd, in Listen()
388 return std::unique_ptr<UnixSocket>( in Listen()
389 new UnixSocket(event_listener, task_runner, std::move(fd), in Listen()
394 std::unique_ptr<UnixSocket> UnixSocket::Connect(const std::string& socket_name, in Connect()
398 std::unique_ptr<UnixSocket> sock( in Connect()
399 new UnixSocket(event_listener, task_runner, sock_type)); in Connect()
405 std::unique_ptr<UnixSocket> UnixSocket::AdoptConnected( in AdoptConnected()
410 return std::unique_ptr<UnixSocket>( in AdoptConnected()
411 new UnixSocket(event_listener, task_runner, std::move(fd), in AdoptConnected()
415 UnixSocket::UnixSocket(EventListener* event_listener, in UnixSocket() function in perfetto::base::UnixSocket
418 : UnixSocket(event_listener, in UnixSocket()
424 UnixSocket::UnixSocket(EventListener* event_listener, in UnixSocket() function in perfetto::base::UnixSocket
470 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in UnixSocket()
477 UnixSocket::~UnixSocket() { in ~UnixSocket()
482 UnixSocketRaw UnixSocket::ReleaseSocket() { in ReleaseSocket()
492 void UnixSocket::DoConnect(const std::string& socket_name) { in DoConnect()
517 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in DoConnect()
524 void UnixSocket::ReadPeerCredentials() { in ReadPeerCredentials()
544 void UnixSocket::OnEvent() { in OnEvent()
580 std::unique_ptr<UnixSocket> new_sock( in OnEvent()
581 new UnixSocket(event_listener_, task_runner_, std::move(new_fd), in OnEvent()
588 bool UnixSocket::Send(const void* msg, in Send()
634 void UnixSocket::Shutdown(bool notify) { in Shutdown()
635 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in Shutdown()
657 size_t UnixSocket::Receive(void* msg, in Receive()
680 std::string UnixSocket::ReceiveString(size_t max_length) { in ReceiveString()
688 void UnixSocket::NotifyConnectionState(bool success) { in NotifyConnectionState()
692 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in NotifyConnectionState()
699 UnixSocket::EventListener::~EventListener() {} in ~EventListener()
700 void UnixSocket::EventListener::OnNewIncomingConnection( in OnNewIncomingConnection()
701 UnixSocket*, in OnNewIncomingConnection() argument
702 std::unique_ptr<UnixSocket>) {} in OnNewIncomingConnection() argument
703 void UnixSocket::EventListener::OnConnect(UnixSocket*, bool) {} in OnConnect() argument
704 void UnixSocket::EventListener::OnDisconnect(UnixSocket*) {} in OnDisconnect() argument
705 void UnixSocket::EventListener::OnDataAvailable(UnixSocket*) {} in OnDataAvailable() argument