Lines Matching defs:net_result
215 int net_result = (success ? net::OK : net::ERR_FAILED);
216 if (net_result != net::OK)
217 error_ = net::ErrorToString(net_result);
218 results_ = sockets_tcp::SetKeepAlive::Results::Create(net_result);
239 int net_result = (success ? net::OK : net::ERR_FAILED);
240 if (net_result != net::OK)
241 error_ = net::ErrorToString(net_result);
242 results_ = sockets_tcp::SetNoDelay::Results::Create(net_result);
306 void SocketsTcpConnectFunction::OnCompleted(int net_result) {
307 if (net_result == net::OK) {
312 if (net_result != net::OK)
313 error_ = net::ErrorToString(net_result);
314 results_ = sockets_tcp::Connect::Results::Create(net_result);
364 void SocketsTcpSendFunction::OnCompleted(int net_result) {
365 if (net_result >= net::OK) {
366 SetSendResult(net::OK, net_result);
368 SetSendResult(net_result, -1);
372 void SocketsTcpSendFunction::SetSendResult(int net_result, int bytes_sent) {
373 CHECK(net_result <= net::OK) << "Network status code must be <= net::OK";
376 send_info.result_code = net_result;
377 if (net_result == net::OK) {
381 if (net_result != net::OK)
382 error_ = net::ErrorToString(net_result);