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

Unified Diff: net/url_request/redirect_info.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: darin comments Created 6 years, 4 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 | « net/ocsp/nss_ocsp.cc ('k') | net/url_request/redirect_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/redirect_info.h
diff --git a/net/url_request/redirect_info.h b/net/url_request/redirect_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1ae6369eb3cdf0cca55c3f68919ad40f7553070
--- /dev/null
+++ b/net/url_request/redirect_info.h
@@ -0,0 +1,43 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_URL_REQUEST_REDIRECT_INFO_H_
+#define NET_URL_REQUEST_REDIRECT_INFO_H_
+
+#include <string>
+
+#include "net/base/net_export.h"
+#include "url/gurl.h"
+
+namespace net {
+
+// RedirectInfo captures information about a redirect and any fields in a
+// request that change. This struct must be kept in sync with
+// content/common/resource_messages.h.
+struct NET_EXPORT RedirectInfo {
+ RedirectInfo();
+ ~RedirectInfo();
+
+ // The status code for the redirect response. This is almost redundant with
+ // the response headers, but some URLRequestJobs emit redirects without
+ // headers.
+ int status_code;
+
+ // The new request method. Depending on the response code, the request method
+ // may change.
+ std::string new_method;
+
+ // The new request URL.
+ GURL new_url;
+
+ // The new first-party URL for cookies.
+ GURL new_first_party_for_cookies;
+
+ // The new HTTP referrer header.
+ std::string new_referrer;
+};
+
+} // namespace net
+
+#endif // NET_URL_REQUEST_REDIRECT_INFO_H_
« no previous file with comments | « net/ocsp/nss_ocsp.cc ('k') | net/url_request/redirect_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698