#include "net/url_request/url_request_redirect_job.h"
#include <string>
#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "base/values.h"
#include "net/base/load_timing_info.h"
#include "net/base/net_errors.h"
#include "net/http/http_log_util.h"
#include "net/http/http_raw_request_headers.h"
#include "net/http/http_response_headers.h"
#include "net/log/net_log.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_with_source.h"
#include "net/url_request/redirect_util.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_job.h"
namespace net {
URLRequestRedirectJob::URLRequestRedirectJob(
URLRequest* request,
const GURL& redirect_destination,
RedirectUtil::ResponseCode response_code,
const std::string& redirect_reason)
: … { … }
URLRequestRedirectJob::~URLRequestRedirectJob() = default;
void URLRequestRedirectJob::GetResponseInfo(HttpResponseInfo* info) { … }
void URLRequestRedirectJob::GetLoadTimingInfo(
LoadTimingInfo* load_timing_info) const { … }
void URLRequestRedirectJob::Start() { … }
void URLRequestRedirectJob::Kill() { … }
bool URLRequestRedirectJob::CopyFragmentOnRedirect(const GURL& location) const { … }
void URLRequestRedirectJob::StartAsync() { … }
void URLRequestRedirectJob::SetRequestHeadersCallback(
RequestHeadersCallback callback) { … }
}