Index: content/public/browser/resource_throttle.h |
diff --git a/content/public/browser/resource_throttle.h b/content/public/browser/resource_throttle.h |
index 574025d8275b4c239f21cf74314fae4406ddb952..240d95e1967b0a01d028d8c4be9e8a961bcde7be 100644 |
--- a/content/public/browser/resource_throttle.h |
+++ b/content/public/browser/resource_throttle.h |
@@ -9,6 +9,10 @@ |
class GURL; |
+namespace net { |
+struct RedirectInfo; |
+} |
+ |
namespace content { |
class ResourceController; |
@@ -22,9 +26,20 @@ class ResourceThrottle { |
public: |
virtual ~ResourceThrottle() {} |
+ // Called before the resource request is started. |
virtual void WillStartRequest(bool* defer) {} |
+ |
+ // Called before the resource request uses the network for the first time. |
virtual void WillStartUsingNetwork(bool* defer) {} |
- virtual void WillRedirectRequest(const GURL& new_url, bool* defer) {} |
+ |
+ // Called when the request was redirected. |redirect_info| contains the |
+ // redirect responses's HTTP status code and some information about the new |
+ // request that will be sent if the redirect is followed, including the new |
+ // URL and new method. |
+ virtual void WillRedirectRequest(const net::RedirectInfo& redirect_info, |
+ bool* defer) {} |
+ |
+ // Called when the response headers and meta data are available. |
virtual void WillProcessResponse(bool* defer) {} |
// Returns the name of the throttle, as a UTF-8 C-string, for logging |