| OLD | NEW |
| 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/WebPageVisibilityState.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 | 20 |
| 20 // A struct to hold the parameters needed to start a navigation request in | 21 // A struct to hold the parameters needed to start a navigation request in |
| 21 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed | 22 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed |
| 22 // to the IO thread by a NavigationRequest object. | 23 // to the IO thread by a NavigationRequest object. |
| 23 struct CONTENT_EXPORT NavigationRequestInfo { | 24 struct CONTENT_EXPORT NavigationRequestInfo { |
| 24 NavigationRequestInfo(const CommonNavigationParams& common_params, | 25 NavigationRequestInfo(const CommonNavigationParams& common_params, |
| 25 const BeginNavigationParams& begin_params, | 26 const BeginNavigationParams& begin_params, |
| 26 const GURL& first_party_for_cookies, | 27 const GURL& first_party_for_cookies, |
| 27 const url::Origin& request_initiator, | 28 const url::Origin& request_initiator, |
| 28 bool is_main_frame, | 29 bool is_main_frame, |
| 29 bool parent_is_main_frame, | 30 bool parent_is_main_frame, |
| 30 bool are_ancestors_secure, | 31 bool are_ancestors_secure, |
| 31 int frame_tree_node_id, | 32 int frame_tree_node_id, |
| 32 bool is_for_guests_only, | 33 bool is_for_guests_only, |
| 33 bool report_raw_headers); | 34 bool report_raw_headers, |
| 35 blink::WebPageVisibilityState page_visibility_state); |
| 34 ~NavigationRequestInfo(); | 36 ~NavigationRequestInfo(); |
| 35 | 37 |
| 36 const CommonNavigationParams common_params; | 38 const CommonNavigationParams common_params; |
| 37 const BeginNavigationParams begin_params; | 39 const BeginNavigationParams begin_params; |
| 38 | 40 |
| 39 // Usually the URL of the document in the top-level window, which may be | 41 // Usually the URL of the document in the top-level window, which may be |
| 40 // checked by the third-party cookie blocking policy. | 42 // checked by the third-party cookie blocking policy. |
| 41 const GURL first_party_for_cookies; | 43 const GURL first_party_for_cookies; |
| 42 | 44 |
| 43 // The origin of the context which initiated the request. | 45 // The origin of the context which initiated the request. |
| 44 const url::Origin request_initiator; | 46 const url::Origin request_initiator; |
| 45 | 47 |
| 46 const bool is_main_frame; | 48 const bool is_main_frame; |
| 47 const bool parent_is_main_frame; | 49 const bool parent_is_main_frame; |
| 48 | 50 |
| 49 // Whether all ancestor frames of the frame that is navigating have a secure | 51 // Whether all ancestor frames of the frame that is navigating have a secure |
| 50 // origin. True for main frames. | 52 // origin. True for main frames. |
| 51 const bool are_ancestors_secure; | 53 const bool are_ancestors_secure; |
| 52 | 54 |
| 53 const int frame_tree_node_id; | 55 const int frame_tree_node_id; |
| 54 | 56 |
| 55 const bool is_for_guests_only; | 57 const bool is_for_guests_only; |
| 56 | 58 |
| 57 const bool report_raw_headers; | 59 const bool report_raw_headers; |
| 60 |
| 61 blink::WebPageVisibilityState page_visibility_state; |
| 58 }; | 62 }; |
| 59 | 63 |
| 60 } // namespace content | 64 } // namespace content |
| 61 | 65 |
| 62 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | 66 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ |
| OLD | NEW |