#include "net/url_request/url_request_filter.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/task/current_thread.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_job.h"
#include "net/url_request/url_request_job_factory.h"
namespace net {
namespace {
bool OnMessageLoopForInterceptorAddition() { … }
bool OnMessageLoopForInterceptorRemoval() { … }
}
URLRequestFilter* URLRequestFilter::GetInstance() { … }
void URLRequestFilter::AddHostnameInterceptor(
const std::string& scheme,
const std::string& hostname,
std::unique_ptr<URLRequestInterceptor> interceptor) { … }
void URLRequestFilter::RemoveHostnameHandler(const std::string& scheme,
const std::string& hostname) { … }
bool URLRequestFilter::AddUrlInterceptor(
const GURL& url,
std::unique_ptr<URLRequestInterceptor> interceptor) { … }
void URLRequestFilter::RemoveUrlHandler(const GURL& url) { … }
void URLRequestFilter::ClearHandlers() { … }
std::unique_ptr<URLRequestJob> URLRequestFilter::MaybeInterceptRequest(
URLRequest* request) const { … }
URLRequestFilter::URLRequestFilter() { … }
URLRequestFilter::~URLRequestFilter() { … }
}