Searched refs:UnixSocket (Results 1 - 9 of 9) sorted by relevance
/external/perfetto/src/ipc/ |
H A D | unix_socket.h | 78 class UnixSocket { class in namespace:perfetto::ipc 86 UnixSocket* self, 87 std::unique_ptr<UnixSocket> new_connection); 90 virtual void OnConnect(UnixSocket* self, bool connected); 94 virtual void OnDisconnect(UnixSocket* self); 99 virtual void OnDataAvailable(UnixSocket* self); 116 static std::unique_ptr<UnixSocket> Listen(const std::string& socket_name, 122 static std::unique_ptr<UnixSocket> Listen(base::ScopedFile socket_fd, 129 static std::unique_ptr<UnixSocket> Connect(const std::string& socket_name, 142 ~UnixSocket(); [all...] |
H A D | host_impl.h | 37 class HostImpl : public Host, public UnixSocket::EventListener { 46 // UnixSocket::EventListener implementation. 47 void OnNewIncomingConnection(UnixSocket*, 48 std::unique_ptr<UnixSocket>) override; 49 void OnDisconnect(UnixSocket*) override; 50 void OnDataAvailable(UnixSocket*) override; 52 const UnixSocket* sock() const { return sock_.get(); } 59 std::unique_ptr<UnixSocket> sock; 88 std::unique_ptr<UnixSocket> sock_; // The listening socket. 90 std::map<UnixSocket*, ClientConnectio [all...] |
H A D | unix_socket_unittest.cc | 45 class MockEventListener : public UnixSocket::EventListener { 47 MOCK_METHOD2(OnNewIncomingConnection, void(UnixSocket*, UnixSocket*)); 48 MOCK_METHOD2(OnConnect, void(UnixSocket*, bool)); 49 MOCK_METHOD1(OnDisconnect, void(UnixSocket*)); 50 MOCK_METHOD1(OnDataAvailable, void(UnixSocket*)); 54 UnixSocket* self, 55 std::unique_ptr<UnixSocket> new_connection) override { 60 std::unique_ptr<UnixSocket> GetIncomingConnection() { 63 std::unique_ptr<UnixSocket> soc [all...] |
H A D | unix_socket.cc | 88 base::ScopedFile UnixSocket::CreateAndBind(const std::string& socket_name) { 108 std::unique_ptr<UnixSocket> UnixSocket::Listen(const std::string& socket_name, 116 std::unique_ptr<UnixSocket> UnixSocket::Listen(base::ScopedFile socket_fd, 119 std::unique_ptr<UnixSocket> sock(new UnixSocket( 125 std::unique_ptr<UnixSocket> UnixSocket::Connect(const std::string& socket_name, 128 std::unique_ptr<UnixSocket> soc 133 UnixSocket::UnixSocket(EventListener* event_listener, function in class:perfetto::ipc::UnixSocket 140 UnixSocket::UnixSocket(EventListener* event_listener, function in class:perfetto::ipc::UnixSocket 492 OnNewIncomingConnection( UnixSocket*, std::unique_ptr<UnixSocket>) argument [all...] |
H A D | client_impl.h | 42 class ClientImpl : public Client, public UnixSocket::EventListener { 52 // UnixSocket::EventListener implementation. 53 void OnConnect(UnixSocket*, bool connected) override; 54 void OnDisconnect(UnixSocket*) override; 55 void OnDataAvailable(UnixSocket*) override; 85 std::unique_ptr<UnixSocket> sock_;
|
H A D | host_impl.cc | 59 sock_ = UnixSocket::Listen(std::move(socket_fd), this, task_runner_); 66 sock_ = UnixSocket::Listen(socket_name, this, task_runner_); 84 void HostImpl::OnNewIncomingConnection(UnixSocket*, 85 std::unique_ptr<UnixSocket> new_conn) { 95 void HostImpl::OnDataAvailable(UnixSocket* sock) { 240 UnixSocket::BlockingMode::kBlocking); 244 void HostImpl::OnDisconnect(UnixSocket* sock) {
|
H A D | client_impl.cc | 47 sock_ = UnixSocket::Connect(socket_name, this, task_runner); 53 OnDisconnect(nullptr); // The UnixSocket* ptr is not used in OnDisconnect(). 123 UnixSocket::BlockingMode::kBlocking); 128 void ClientImpl::OnConnect(UnixSocket*, bool connected) { 141 void ClientImpl::OnDisconnect(UnixSocket*) { 153 void ClientImpl::OnDataAvailable(UnixSocket*) {
|
H A D | client_impl_unittest.cc | 81 class FakeHost : public UnixSocket::EventListener { 106 listening_sock = UnixSocket::Listen(kSockName, this, task_runner); 120 // UnixSocket::EventListener implementation. 122 UnixSocket*, 123 std::unique_ptr<UnixSocket> new_connection) override { 128 void OnDataAvailable(UnixSocket* sock) override { 190 std::unique_ptr<UnixSocket> listening_sock; 191 std::unique_ptr<UnixSocket> client_sock;
|
H A D | host_impl_unittest.cc | 81 class FakeClient : public UnixSocket::EventListener { 91 sock_ = UnixSocket::Connect(kSockName, this, task_runner); 121 // UnixSocket::EventListener implementation. 122 void OnConnect(UnixSocket*, bool success) override { 127 void OnDisconnect(UnixSocket*) override { OnDisconnect(); } 129 void OnDataAvailable(UnixSocket* sock) override { 159 std::unique_ptr<UnixSocket> sock_;
|
Completed in 267 milliseconds