Home
last modified time | relevance | path

Searched refs:TCPSocket (Results 1 – 25 of 46) sorted by relevance

12

/external/chromium_org/extensions/browser/api/socket/
Dtcp_socket.cc45 TCPSocket::TCPSocket(const std::string& owner_extension_id) in TCPSocket() function in extensions::TCPSocket
48 TCPSocket::TCPSocket(net::TCPClientSocket* tcp_client_socket, in TCPSocket() function in extensions::TCPSocket
57 TCPSocket::TCPSocket(net::TCPServerSocket* tcp_server_socket, in TCPSocket() function in extensions::TCPSocket
64 TCPSocket* TCPSocket::CreateSocketForTesting( in CreateSocketForTesting()
68 return new TCPSocket(tcp_client_socket, owner_extension_id, is_connected); in CreateSocketForTesting()
72 TCPSocket* TCPSocket::CreateServerSocketForTesting( in CreateServerSocketForTesting()
75 return new TCPSocket(tcp_server_socket, owner_extension_id); in CreateServerSocketForTesting()
78 TCPSocket::~TCPSocket() { Disconnect(); } in ~TCPSocket()
80 void TCPSocket::Connect(const std::string& address, in Connect()
109 base::Bind(&TCPSocket::OnConnectComplete, base::Unretained(this))); in Connect()
[all …]
Dtcp_socket.h23 class TCPSocket : public Socket {
25 explicit TCPSocket(const std::string& owner_extension_id);
26 TCPSocket(net::TCPClientSocket* tcp_client_socket,
30 virtual ~TCPSocket();
65 static TCPSocket* CreateSocketForTesting(
69 static TCPSocket* CreateServerSocketForTesting(
91 TCPSocket(net::TCPServerSocket* tcp_server_socket,
111 class ResumableTCPSocket : public TCPSocket {
152 class ResumableTCPServerSocket : public TCPSocket {
/external/chromium_org/ppapi/cpp/
Dtcp_socket.cc26 TCPSocket::TCPSocket() { in TCPSocket() function in pp::TCPSocket
29 TCPSocket::TCPSocket(const InstanceHandle& instance) { in TCPSocket() function in pp::TCPSocket
39 TCPSocket::TCPSocket(PassRef, PP_Resource resource) in TCPSocket() function in pp::TCPSocket
43 TCPSocket::TCPSocket(const TCPSocket& other) : Resource(other) { in TCPSocket() function in pp::TCPSocket
46 TCPSocket::~TCPSocket() { in ~TCPSocket()
49 TCPSocket& TCPSocket::operator=(const TCPSocket& other) { in operator =()
55 bool TCPSocket::IsAvailable() { in IsAvailable()
60 int32_t TCPSocket::Bind(const NetAddress& addr, in Bind()
69 int32_t TCPSocket::Connect(const NetAddress& addr, in Connect()
82 NetAddress TCPSocket::GetLocalAddress() const { in GetLocalAddress()
[all …]
Dtcp_socket.h27 class TCPSocket : public Resource {
31 TCPSocket();
37 explicit TCPSocket(const InstanceHandle& instance);
43 TCPSocket(PassRef, PP_Resource resource);
48 TCPSocket(const TCPSocket& other);
51 virtual ~TCPSocket();
58 TCPSocket& operator=(const TCPSocket& other);
182 int32_t Accept(const CompletionCallbackWithOutput<TCPSocket>& callback);
/external/chromium_org/chrome/browser/extensions/api/socket/
Dtcp_socket_unittest.cc75 scoped_ptr<TCPSocket> socket(TCPSocket::CreateSocketForTesting( in TEST()
93 scoped_ptr<TCPSocket> socket(TCPSocket::CreateSocketForTesting( in TEST()
115 scoped_ptr<TCPSocket> socket(TCPSocket::CreateSocketForTesting( in TEST()
140 scoped_ptr<TCPSocket> socket(TCPSocket::CreateSocketForTesting( in TEST()
171 scoped_ptr<TCPSocket> socket(TCPSocket::CreateSocketForTesting( in TEST()
193 scoped_ptr<TCPSocket> socket(TCPSocket::CreateSocketForTesting( in TEST()
221 scoped_ptr<TCPSocket> socket(TCPSocket::CreateServerSocketForTesting( in TEST()
/external/chromium_org/ppapi/tests/
Dtest_tcp_socket.cc26 REGISTER_TEST_CASE(TCPSocket);
34 if (!pp::TCPSocket::IsAvailable()) in Init()
70 pp::TCPSocket socket(instance_); in TestConnect()
90 pp::TCPSocket socket(instance_); in TestConnect()
120 pp::TCPSocket socket(instance_); in TestReadWrite()
138 pp::TCPSocket socket(instance_); in TestSetOption()
192 pp::TCPSocket server_socket(instance_); in TestListen()
197 TestCompletionCallbackWithOutput<pp::TCPSocket> in TestListen()
208 pp::TCPSocket client_socket; in TestListen()
211 client_socket = pp::TCPSocket(instance_); in TestListen()
[all …]
Dtest_host_resolver.h16 class TCPSocket; variable
28 std::string SyncConnect(pp::TCPSocket* socket,
30 std::string SyncRead(pp::TCPSocket* socket,
34 std::string SyncWrite(pp::TCPSocket* socket,
38 std::string CheckHTTPResponse(pp::TCPSocket* socket,
Dtest_tcp_socket.h16 class TCPSocket; variable
35 std::string ReadFirstLineFromSocket(pp::TCPSocket* socket, std::string* s);
38 std::string ReadFromSocket(pp::TCPSocket* socket,
41 std::string WriteToSocket(pp::TCPSocket* socket, const std::string& s);
45 std::string StartListen(pp::TCPSocket* socket, int32_t backlog);
Dtest_host_resolver.cc25 bool tcp_socket_is_available = pp::TCPSocket::IsAvailable(); in Init()
48 pp::TCPSocket* socket, in SyncConnect()
57 std::string TestHostResolver::SyncRead(pp::TCPSocket* socket, in SyncRead()
70 std::string TestHostResolver::SyncWrite(pp::TCPSocket* socket, in SyncWrite()
83 std::string TestHostResolver::CheckHTTPResponse(pp::TCPSocket* socket, in CheckHTTPResponse()
127 pp::TCPSocket socket(instance_); in ParameterizedTestResolve()
/external/chromium_org/native_client_sdk/src/examples/api/socket/
Decho_server.h31 void OnAcceptCompletion(int32_t result, pp::TCPSocket socket);
40 pp::TCPSocket listening_socket_;
41 pp::TCPSocket incoming_socket_;
Decho_server.cc36 if (!pp::TCPSocket::IsAvailable()) { in Start()
41 listening_socket_ = pp::TCPSocket(instance_); in Start()
97 void EchoServer::OnAcceptCompletion(int32_t result, pp::TCPSocket socket) { in OnAcceptCompletion()
127 incoming_socket_ = pp::TCPSocket(); in OnReadCompletion()
167 pp::CompletionCallbackWithOutput<pp::TCPSocket> callback = in TryAccept()
Dsocket.cc55 pp::TCPSocket tcp_socket_;
135 if (!pp::TCPSocket::IsAvailable()) { in Connect()
140 tcp_socket_ = pp::TCPSocket(this); in Connect()
219 tcp_socket_ = pp::TCPSocket(); in Close()
/external/chromium_org/net/socket/
Dtcp_socket_unittest.cc69 scoped_ptr<TCPSocket> accepted_socket; in TestAcceptAsync()
93 TCPSocket socket_;
109 scoped_ptr<TCPSocket> accepted_socket; in TEST_F()
156 scoped_ptr<TCPSocket> accepted_socket; in TEST_F()
176 scoped_ptr<TCPSocket> accepted_socket2; in TEST_F()
209 scoped_ptr<TCPSocket> accepted_socket; in TEST_F()
229 TCPSocket connecting_socket(NULL, NetLog::Source()); in TEST_F()
235 scoped_ptr<TCPSocket> accepted_socket; in TEST_F()
Dtcp_socket.h26 typedef TCPSocketWin TCPSocket; typedef
28 typedef TCPSocketLibevent TCPSocket;
Dtcp_server_socket.h42 TCPSocket socket_;
44 scoped_ptr<TCPSocket> accepted_socket_;
Dtcp_client_socket.h32 TCPClientSocket(scoped_ptr<TCPSocket> connected_socket,
92 scoped_ptr<TCPSocket> socket_;
Dtcp_client_socket.cc19 : socket_(new TCPSocket(net_log, source)), in TCPClientSocket()
26 TCPClientSocket::TCPClientSocket(scoped_ptr<TCPSocket> connected_socket, in TCPClientSocket()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/
Decho_server.cc37 if (!pp::TCPSocket::IsAvailable()) { in Start()
42 listening_socket_ = pp::TCPSocket(instance_); in Start()
105 void EchoServer::OnAcceptCompletion(int32_t result, pp::TCPSocket socket) { in OnAcceptCompletion()
135 incoming_socket_ = pp::TCPSocket(); in OnReadCompletion()
175 pp::CompletionCallbackWithOutput<pp::TCPSocket> callback = in TryAccept()
Decho_server.h41 void OnAcceptCompletion(int32_t result, pp::TCPSocket socket);
55 pp::TCPSocket listening_socket_;
56 pp::TCPSocket incoming_socket_;
/external/chromium_org/device/bluetooth/
Dbluetooth_socket_net.h63 net::TCPSocket* tcp_socket() { return tcp_socket_.get(); } in tcp_socket()
66 void SetTCPSocket(scoped_ptr<net::TCPSocket> tcp_socket);
114 scoped_ptr<net::TCPSocket> tcp_socket_;
Dbluetooth_socket_win.cc195 scoped_ptr<net::TCPSocket> scoped_socket( in DoConnect()
196 new net::TCPSocket(NULL, net::NetLog::Source())); in DoConnect()
262 scoped_ptr<net::TCPSocket> scoped_socket( in DoListen()
263 new net::TCPSocket(NULL, net::NetLog::Source())); in DoListen()
374 scoped_ptr<net::TCPSocket> accept_socket, in OnAcceptOnUI()
Dbluetooth_socket_win.h80 void OnAcceptOnUI(scoped_ptr<net::TCPSocket> accept_socket,
93 scoped_ptr<net::TCPSocket> accept_socket_;
/external/chromium_org/content/browser/renderer_host/pepper/
Dpepper_tcp_server_socket_message_filter.h98 scoped_ptr<net::TCPSocket> socket_;
99 scoped_ptr<net::TCPSocket> accepted_socket_;
Dpepper_tcp_socket_message_filter.h61 scoped_ptr<net::TCPSocket> socket);
197 scoped_ptr<net::TCPSocket> socket_;
212 scoped_ptr<net::TCPSocket> accepted_socket_;
Dcontent_browser_pepper_host_factory.h42 scoped_ptr<net::TCPSocket> socket);

12