Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: net/websockets/websocket_basic_handshake_stream.cc

Issue 1320683003: Move logic to figure out if a socket can be reused into HttpStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/websockets/websocket_basic_handshake_stream.cc
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc
index a253e2e49f4a13d31bdd935de7b1625f426136b2..5b2b031f5b10f4100ab4c388039b45515569116a 100644
--- a/net/websockets/websocket_basic_handshake_stream.cc
+++ b/net/websockets/websocket_basic_handshake_stream.cc
@@ -462,10 +462,6 @@ bool WebSocketBasicHandshakeStream::IsResponseBodyComplete() const {
return parser()->IsResponseBodyComplete();
}
-bool WebSocketBasicHandshakeStream::CanFindEndOfResponse() const {
- return parser() && parser()->CanFindEndOfResponse();
-}
-
bool WebSocketBasicHandshakeStream::IsConnectionReused() const {
return parser()->IsConnectionReused();
}
@@ -474,7 +470,7 @@ void WebSocketBasicHandshakeStream::SetConnectionReused() {
parser()->SetConnectionReused();
}
-bool WebSocketBasicHandshakeStream::IsConnectionReusable() const {
+bool WebSocketBasicHandshakeStream::CanReuseConnection() const {
return false;
}
@@ -497,8 +493,6 @@ void WebSocketBasicHandshakeStream::GetSSLCertRequestInfo(
parser()->GetSSLCertRequestInfo(cert_request_info);
}
-bool WebSocketBasicHandshakeStream::IsSpdyHttpStream() const { return false; }
-
void WebSocketBasicHandshakeStream::Drain(HttpNetworkSession* session) {
HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this);
drainer->Start(session);
« net/http/http_stream.h ('K') | « net/websockets/websocket_basic_handshake_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698