#ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_
#define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_
#include "content/common/content_export.h"
namespace net {
class AuthChallengeInfo;
}
namespace content {
class ResourceDispatcherHostLoginDelegate;
class ResourceLoader;
class CONTENT_EXPORT ResourceLoaderDelegate {
public:
virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
ResourceLoader* loader,
net::AuthChallengeInfo* auth_info) = 0;
virtual bool HandleExternalProtocol(ResourceLoader* loader,
const GURL& url) = 0;
virtual void DidStartRequest(ResourceLoader* loader) = 0;
virtual void DidReceiveRedirect(ResourceLoader* loader,
const GURL& new_url) = 0;
virtual void DidReceiveResponse(ResourceLoader* loader) = 0;
virtual void DidFinishLoading(ResourceLoader* loader) = 0;
protected:
virtual ~ResourceLoaderDelegate() {}
};
}
#endif