1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_URL_REQUEST_REDIRECT_INFO_H_
6 #define NET_URL_REQUEST_REDIRECT_INFO_H_
10 #include "net/base/net_export.h"
15 // RedirectInfo captures information about a redirect and any fields in a
16 // request that change. This struct must be kept in sync with
17 // content/common/resource_messages.h.
18 struct NET_EXPORT RedirectInfo
{
22 // The status code for the redirect response. This is almost redundant with
23 // the response headers, but some URLRequestJobs emit redirects without
27 // The new request method. Depending on the response code, the request method
29 std::string new_method
;
31 // The new request URL.
34 // The new first-party URL for cookies.
35 GURL new_first_party_for_cookies
;
37 // The new HTTP referrer header.
38 std::string new_referrer
;
43 #endif // NET_URL_REQUEST_REDIRECT_INFO_H_