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

Unified Diff: content/public/child/request_peer.h

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a TODO Created 6 years, 5 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
Index: content/public/child/request_peer.h
diff --git a/content/public/child/request_peer.h b/content/public/child/request_peer.h
index 93143c5b4a8fcba45e00995df35c00ef523bf45f..ebce5f88989b8a344c2528e94555f8124b99a041 100644
--- a/content/public/child/request_peer.h
+++ b/content/public/child/request_peer.h
@@ -16,6 +16,10 @@ namespace base {
class TimeTicks;
}
+namespace net {
+struct RedirectInfo;
+}
+
namespace content {
struct ResourceResponseInfo;
@@ -34,12 +38,10 @@ class CONTENT_EXPORT RequestPeer {
virtual void OnUploadProgress(uint64 position, uint64 size) = 0;
// Called when a redirect occurs. The implementation may return false to
- // suppress the redirect. The given ResponseInfo provides complete
- // information about the redirect, and new_url is the URL that will be loaded
- // if this method returns true. new_first_party_for_cookies is the new
- // first-party URL for cookies should that have changed.
- virtual bool OnReceivedRedirect(const GURL& new_url,
- const GURL& new_first_party_for_cookies,
+ // suppress the redirect. The ResourceResponseInfo provides information about
+ // the redirect response and the RedirectInfo includes information about the
+ // request to be made if the method returns true.
+ virtual bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
const ResourceResponseInfo& info) = 0;
// Called when response headers are available (after all redirects have

Powered by Google App Engine
This is Rietveld 408576698