Index: net/http/http_basic_stream.cc |
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc |
index eb5ecc2e4f44205ce7dba18a70444463e56a1bbe..43b141a467e5c3878dc2951176acc7ecec380ec4 100644 |
--- a/net/http/http_basic_stream.cc |
+++ b/net/http/http_basic_stream.cc |
@@ -11,6 +11,7 @@ |
#include "net/base/net_errors.h" |
#include "net/http/http_request_headers.h" |
#include "net/http/http_request_info.h" |
+#include "net/http/http_response_body_drainer.h" |
#include "net/http/http_stream_parser.h" |
#include "net/http/http_util.h" |
#include "net/socket/client_socket_handle.h" |
@@ -130,4 +131,10 @@ void HttpBasicStream::LogNumRttVsBytesMetrics() const { |
// Log rtt metrics here. |
} |
+void HttpBasicStream::Drain(HttpNetworkSession* session) { |
+ HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); |
+ drainer->Start(session); |
+ // |drainer| will delete itself. |
+} |
+ |
} // namespace net |