#include "net/url_request/url_request_job_factory.h"
#include "base/containers/contains.h"
#include "net/base/net_errors.h"
#include "net/net_buildflags.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_error_job.h"
#include "net/url_request/url_request_http_job.h"
#include "net/url_request/url_request_interceptor.h"
#include "url/gurl.h"
#include "url/url_constants.h"
namespace net {
namespace {
URLRequestInterceptor* g_interceptor_for_testing = …;
class HttpProtocolHandler : public URLRequestJobFactory::ProtocolHandler { … };
}
URLRequestJobFactory::ProtocolHandler::~ProtocolHandler() = default;
bool URLRequestJobFactory::ProtocolHandler::IsSafeRedirectTarget(
const GURL& location) const { … }
URLRequestJobFactory::URLRequestJobFactory() { … }
URLRequestJobFactory::~URLRequestJobFactory() { … }
bool URLRequestJobFactory::SetProtocolHandler(
const std::string& scheme,
std::unique_ptr<ProtocolHandler> protocol_handler) { … }
std::unique_ptr<URLRequestJob> URLRequestJobFactory::CreateJob(
URLRequest* request) const { … }
bool URLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const { … }
void URLRequestJobFactory::SetInterceptorForTesting(
URLRequestInterceptor* interceptor) { … }
}