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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef NET_URL_REQUEST_REDIRECT_INFO_H_
6 #define NET_URL_REQUEST_REDIRECT_INFO_H_
7
8 #include <string>
9
10 #include "net/base/net_export.h"
11 #include "url/gurl.h"
12
13 namespace net {
14
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 {
19 RedirectInfo();
20 ~RedirectInfo();
21
22 // The status code for the redirect response.
23 //
24 // TODO(davidben): Instead of passing this down, make URLRequestRedirectJob
25 // always fake a set of headers?
26 int status_code;
27
28 // The new request method. Depending on the response code, the request method
29 // may change.
30 std::string method;
31
32 // The new request URL.
33 GURL url;
34
35 // The new first-party URL for cookies.
36 GURL first_party_for_cookies;
37
38 // The new HTTP referrer header.
39 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.
40 };
41
42 } // namespace net
43
44 #endif // NET_URL_REQUEST_REDIRECT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698