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

Unified Diff: net/quic/quic_http_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/quic/quic_http_stream.cc
diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc
index 49bb29cdd9f80f441848b04ca87fa8fad83af797..d434d4160da9354799cff0d3593afa00d0f83468 100644
--- a/net/quic/quic_http_stream.cc
+++ b/net/quic/quic_http_stream.cc
@@ -238,10 +238,6 @@ bool QuicHttpStream::IsResponseBodyComplete() const {
return next_state_ == STATE_OPEN && !stream_;
}
-bool QuicHttpStream::CanFindEndOfResponse() const {
- return true;
-}
-
bool QuicHttpStream::IsConnectionReused() const {
// TODO(rch): do something smarter here.
return stream_ && stream_->id() > 1;
@@ -251,7 +247,7 @@ void QuicHttpStream::SetConnectionReused() {
// QUIC doesn't need an indicator here.
}
-bool QuicHttpStream::IsConnectionReusable() const {
+bool QuicHttpStream::CanReuseConnection() const {
// QUIC streams aren't considered reusable.
return false;
}
@@ -280,11 +276,8 @@ void QuicHttpStream::GetSSLCertRequestInfo(
NOTIMPLEMENTED();
}
-bool QuicHttpStream::IsSpdyHttpStream() const {
- return false;
-}
-
void QuicHttpStream::Drain(HttpNetworkSession* session) {
+ NOTREACHED();
Close(false);
delete this;
}

Powered by Google App Engine
This is Rietveld 408576698