| Index: net/http/http_basic_stream.cc
|
| diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc
|
| index 08785b82d5178bab1bd695ac63686f0d88805a02..82d007d77fb8585d1449c06194e096f0091190e6 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"
|
| @@ -166,4 +167,10 @@ void HttpBasicStream::LogNumRttVsBytesMetrics() const {
|
| }
|
| }
|
|
|
| +void HttpBasicStream::Drain(HttpNetworkSession* session) {
|
| + HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this);
|
| + drainer->Start(session);
|
| + // |drainer| will delete itself.
|
| +}
|
| +
|
| } // namespace net
|
|
|