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

Side by Side Diff: net/url_request/redirect_info.h

Issue 2108423002: Revert of Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ios/web/public/referrer_util_unittest.cc ('k') | net/url_request/redirect_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_REDIRECT_INFO_H_ 5 #ifndef NET_URL_REQUEST_REDIRECT_INFO_H_
6 #define NET_URL_REQUEST_REDIRECT_INFO_H_ 6 #define NET_URL_REQUEST_REDIRECT_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/url_request/url_request.h"
12 #include "url/gurl.h" 11 #include "url/gurl.h"
13 12
14 namespace net { 13 namespace net {
15 14
16 // RedirectInfo captures information about a redirect and any fields in a 15 // RedirectInfo captures information about a redirect and any fields in a
17 // request that change. This struct must be kept in sync with 16 // request that change. This struct must be kept in sync with
18 // content/common/resource_messages.h. 17 // content/common/resource_messages.h.
19 struct NET_EXPORT RedirectInfo { 18 struct NET_EXPORT RedirectInfo {
20 RedirectInfo(); 19 RedirectInfo();
21 RedirectInfo(const RedirectInfo& other); 20 RedirectInfo(const RedirectInfo& other);
(...skipping 10 matching lines...) Expand all
32 31
33 // The new request URL. 32 // The new request URL.
34 GURL new_url; 33 GURL new_url;
35 34
36 // The new first-party URL for cookies. 35 // The new first-party URL for cookies.
37 GURL new_first_party_for_cookies; 36 GURL new_first_party_for_cookies;
38 37
39 // The new HTTP referrer header. 38 // The new HTTP referrer header.
40 std::string new_referrer; 39 std::string new_referrer;
41 40
42 // The new referrer policy that should be obeyed if there are
43 // subsequent redirects.
44 URLRequest::ReferrerPolicy new_referrer_policy;
45
46 // The hostname of the referrer if it asked the client to include a referred 41 // The hostname of the referrer if it asked the client to include a referred
47 // Token Binding when following the redirect; otherwise this is the empty 42 // Token Binding when following the redirect; otherwise this is the empty
48 // string. 43 // string.
49 std::string referred_token_binding_host; 44 std::string referred_token_binding_host;
50 }; 45 };
51 46
52 } // namespace net 47 } // namespace net
53 48
54 #endif // NET_URL_REQUEST_REDIRECT_INFO_H_ 49 #endif // NET_URL_REQUEST_REDIRECT_INFO_H_
OLDNEW
« no previous file with comments | « ios/web/public/referrer_util_unittest.cc ('k') | net/url_request/redirect_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698