Chromium Code Reviews| 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..974b4560adcdf8b341cfacf4485a7177946a137c |
| --- /dev/null |
| +++ b/net/url_request/redirect_info.h |
| @@ -0,0 +1,44 @@ |
| +// 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. |
| + // |
| + // TODO(davidben): Instead of passing this down, make URLRequestRedirectJob |
| + // always fake a set of headers? |
| + int status_code; |
| + |
| + // The new request method. Depending on the response code, the request method |
| + // may change. |
| + std::string method; |
| + |
| + // The new request URL. |
| + GURL url; |
| + |
| + // The new first-party URL for cookies. |
| + GURL first_party_for_cookies; |
| + |
| + // The new HTTP referrer header. |
| + std::string referrer; |
|
mmenke
2014/07/17 16:55:09
Bit of a pain, but I suggest prefixing all of thes
davidben
2014/07/17 22:03:55
You're really mean. :-P Done.
|
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_URL_REQUEST_REDIRECT_INFO_H_ |