#ifndef ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
#define ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_request_job_factory.h"
class GURL;
namespace net {
class URLRequest;
class URLRequestContextGetter;
class URLRequestJob;
class NetworkDelegate;
}
namespace android_webview {
class InterceptedRequestData;
class AwRequestInterceptor : public net::URLRequestJobFactory::ProtocolHandler {
public:
AwRequestInterceptor();
virtual ~AwRequestInterceptor();
virtual net::URLRequestJob* MaybeCreateJob(
net::URLRequest* request,
net::NetworkDelegate* network_delegate) const OVERRIDE;
private:
scoped_ptr<InterceptedRequestData> QueryForInterceptedRequestData(
const GURL& location,
net::URLRequest* request) const;
DISALLOW_COPY_AND_ASSIGN(AwRequestInterceptor);
};
}
#endif