Home
last modified time | relevance | path

Searched refs:eoh (Results 1 – 9 of 9) sorted by relevance

/external/chromium/net/websockets/
Dwebsocket_handshake_draft75.cc72 int eoh = HttpUtil::LocateEndOfHeaders(data, len); in ReadServerHandshake() local
73 if (eoh < 0) in ReadServerHandshake()
75 return eoh; in ReadServerHandshake()
102 int eoh = HttpUtil::LocateEndOfHeaders(data, len); in ReadServerHandshake() local
103 if (eoh == -1) in ReadServerHandshake()
104 return eoh; in ReadServerHandshake()
107 new HttpResponseHeaders(HttpUtil::AssembleRawHeaders(data, eoh))); in ReadServerHandshake()
109 DVLOG(1) << "Process Headers failed: " << std::string(data, eoh); in ReadServerHandshake()
124 return eoh; in ReadServerHandshake()
Dwebsocket_handshake.cc87 int eoh = HttpUtil::LocateEndOfHeaders(data, len); in ReadServerHandshake() local
88 if (eoh < 0) in ReadServerHandshake()
92 new HttpResponseHeaders(HttpUtil::AssembleRawHeaders(data, eoh))); in ReadServerHandshake()
97 return eoh; in ReadServerHandshake()
101 DVLOG(1) << "Process Headers failed: " << std::string(data, eoh); in ReadServerHandshake()
103 return eoh; in ReadServerHandshake()
105 if (len < static_cast<size_t>(eoh + Parameter::kExpectedResponseSize)) { in ReadServerHandshake()
111 if (memcmp(&data[eoh], expected, Parameter::kExpectedResponseSize)) { in ReadServerHandshake()
113 return eoh + Parameter::kExpectedResponseSize; in ReadServerHandshake()
116 return eoh + Parameter::kExpectedResponseSize; in ReadServerHandshake()
Dwebsocket.cc261 int eoh = handshake_->ReadServerHandshake(data, len); in DoReceivedData() local
262 if (eoh < 0) { in DoReceivedData()
266 SkipReadBuffer(eoh); in DoReceivedData()
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/client/
Dpeer_connection_client.cc283 size_t eoh, in GetHeaderValue() argument
288 if (found != std::string::npos && found < eoh) { in GetHeaderValue()
295 bool PeerConnectionClient::GetHeaderValue(const std::string& data, size_t eoh, in GetHeaderValue() argument
300 if (found != std::string::npos && found < eoh) { in GetHeaderValue()
304 end = eoh; in GetHeaderValue()
352 size_t peer_id = 0, eoh = 0; in OnRead() local
354 &eoh); in OnRead()
364 size_t pos = eoh + 4; in OnRead()
404 size_t peer_id = 0, eoh = 0; in OnHangingGetRead() local
406 &peer_id, &eoh); in OnHangingGetRead()
[all …]
Dpeer_connection_client.h99 bool GetHeaderValue(const std::string& data, size_t eoh,
102 bool GetHeaderValue(const std::string& data, size_t eoh,
120 size_t* peer_id, size_t* eoh);
/external/chromium/net/socket_stream/
Dsocket_stream.cc711 int eoh = HttpUtil::LocateEndOfHeaders( in DoReadTunnelHeadersComplete() local
713 if (eoh == -1) { in DoReadTunnelHeadersComplete()
725 HttpUtil::AssembleRawHeaders(tunnel_response_headers_->headers(), eoh)); in DoReadTunnelHeadersComplete()
734 DCHECK_EQ(eoh, tunnel_response_headers_len_); in DoReadTunnelHeadersComplete()
742 if ((eoh < tunnel_response_headers_len_) && delegate_) in DoReadTunnelHeadersComplete()
744 this, tunnel_response_headers_->headers() + eoh, in DoReadTunnelHeadersComplete()
745 tunnel_response_headers_len_ - eoh); in DoReadTunnelHeadersComplete()
/external/chromium_org/net/socket_stream/
Dsocket_stream.cc899 int eoh = HttpUtil::LocateEndOfHeaders( in DoReadTunnelHeadersComplete() local
901 if (eoh == -1) { in DoReadTunnelHeadersComplete()
913 HttpUtil::AssembleRawHeaders(tunnel_response_headers_->headers(), eoh)); in DoReadTunnelHeadersComplete()
922 DCHECK_EQ(eoh, tunnel_response_headers_len_); in DoReadTunnelHeadersComplete()
930 if ((eoh < tunnel_response_headers_len_) && delegate_) in DoReadTunnelHeadersComplete()
932 this, tunnel_response_headers_->headers() + eoh, in DoReadTunnelHeadersComplete()
933 tunnel_response_headers_len_ - eoh); in DoReadTunnelHeadersComplete()
/external/chromium/net/http/
Dhttp_util_unittest.cc191 int eoh = HttpUtil::LocateEndOfHeaders(tests[i].input, input_len); in TEST() local
192 EXPECT_EQ(tests[i].expected_result, eoh); in TEST()
/external/chromium_org/net/http/
Dhttp_util_unittest.cc277 int eoh = HttpUtil::LocateEndOfHeaders(tests[i].input, input_len); in TEST() local
278 EXPECT_EQ(tests[i].expected_result, eoh); in TEST()