#include "net/http/http_response_body_drainer.h"
#include "base/check_op.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/http/http_network_session.h"
#include "net/http/http_stream.h"
namespace net {
const int HttpResponseBodyDrainer::kDrainBodyBufferSize;
const int HttpResponseBodyDrainer::kTimeoutInSeconds;
HttpResponseBodyDrainer::HttpResponseBodyDrainer(HttpStream* stream)
: … { … }
HttpResponseBodyDrainer::~HttpResponseBodyDrainer() = default;
void HttpResponseBodyDrainer::Start(HttpNetworkSession* session) { … }
int HttpResponseBodyDrainer::DoLoop(int result) { … }
int HttpResponseBodyDrainer::DoDrainResponseBody() { … }
int HttpResponseBodyDrainer::DoDrainResponseBodyComplete(int result) { … }
void HttpResponseBodyDrainer::OnIOComplete(int result) { … }
void HttpResponseBodyDrainer::OnTimerFired() { … }
void HttpResponseBodyDrainer::Finish(int result) { … }
}