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

Side by Side Diff: content/browser/frame_host/navigation_request_info.h

Issue 2445993006: [WIP] Upgrade-insecure-request: upgrade insecurely-redirected requests.
Patch Set: bugfix Created 4 years, 1 month 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
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 CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/navigation_params.h" 12 #include "content/common/navigation_params.h"
13 #include "content/common/resource_request_body_impl.h" 13 #include "content/common/resource_request_body_impl.h"
14 #include "content/public/common/referrer.h" 14 #include "content/public/common/referrer.h"
15 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 #include "url/origin.h" 17 #include "url/origin.h"
17 18
18 namespace content { 19 namespace content {
19 class ResourceRequestBody; 20 class ResourceRequestBody;
20 21
21 // A struct to hold the parameters needed to start a navigation request in 22 // A struct to hold the parameters needed to start a navigation request in
22 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed 23 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed
23 // to the IO thread by a NavigationRequest object. 24 // to the IO thread by a NavigationRequest object.
24 struct CONTENT_EXPORT NavigationRequestInfo { 25 struct CONTENT_EXPORT NavigationRequestInfo {
25 NavigationRequestInfo(const CommonNavigationParams& common_params, 26 NavigationRequestInfo(
26 const BeginNavigationParams& begin_params, 27 const CommonNavigationParams& common_params,
27 const GURL& first_party_for_cookies, 28 const BeginNavigationParams& begin_params,
28 const url::Origin& request_initiator, 29 const GURL& first_party_for_cookies,
29 bool is_main_frame, 30 const url::Origin& request_initiator,
30 bool parent_is_main_frame, 31 bool is_main_frame,
31 bool are_ancestors_secure, 32 bool parent_is_main_frame,
32 int frame_tree_node_id, 33 bool are_ancestors_secure,
33 bool is_for_guests_only, 34 int frame_tree_node_id,
34 bool report_raw_headers); 35 bool is_for_guests_only,
36 bool report_raw_headers,
37 blink::WebInsecureRequestPolicy insecure_request_policy);
35 ~NavigationRequestInfo(); 38 ~NavigationRequestInfo();
36 39
37 const CommonNavigationParams common_params; 40 const CommonNavigationParams common_params;
38 const BeginNavigationParams begin_params; 41 const BeginNavigationParams begin_params;
39 42
40 // Usually the URL of the document in the top-level window, which may be 43 // Usually the URL of the document in the top-level window, which may be
41 // checked by the third-party cookie blocking policy. 44 // checked by the third-party cookie blocking policy.
42 const GURL first_party_for_cookies; 45 const GURL first_party_for_cookies;
43 46
44 // The origin of the context which initiated the request. 47 // The origin of the context which initiated the request.
45 const url::Origin request_initiator; 48 const url::Origin request_initiator;
46 49
47 const bool is_main_frame; 50 const bool is_main_frame;
48 const bool parent_is_main_frame; 51 const bool parent_is_main_frame;
49 52
50 // Whether all ancestor frames of the frame that is navigating have a secure 53 // Whether all ancestor frames of the frame that is navigating have a secure
51 // origin. True for main frames. 54 // origin. True for main frames.
52 const bool are_ancestors_secure; 55 const bool are_ancestors_secure;
53 56
54 const int frame_tree_node_id; 57 const int frame_tree_node_id;
55 58
56 const bool is_for_guests_only; 59 const bool is_for_guests_only;
57 60
58 const bool report_raw_headers; 61 const bool report_raw_headers;
62
63 blink::WebInsecureRequestPolicy insecure_request_policy;
59 }; 64 };
60 65
61 } // namespace content 66 } // namespace content
62 67
63 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ 68 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigation_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698