Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2107)

Unified Diff: content/public/browser/resource_throttle.h

Issue 893843003: Add RedirectInfo as a redirect parameter to ResourceThrottles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to David's comment Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/throttling_resource_handler.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..386a67021cc27bc82ff901397a916ddc74d083cf 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;
@@ -24,7 +28,8 @@ class ResourceThrottle {
virtual void WillStartRequest(bool* defer) {}
virtual void WillStartUsingNetwork(bool* defer) {}
- virtual void WillRedirectRequest(const GURL& new_url, bool* defer) {}
+ virtual void WillRedirectRequest(const net::RedirectInfo& redirect_info,
James Hawkins 2015/02/05 21:34:31 Consider documenting the redirect_info param.
mmenke 2015/02/05 22:02:47 Done! Good idea, went ahead and documented the ot
+ bool* defer) {}
virtual void WillProcessResponse(bool* defer) {}
// Returns the name of the throttle, as a UTF-8 C-string, for logging
« no previous file with comments | « content/browser/loader/throttling_resource_handler.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698