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/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/navigation_params.h" | 13 #include "content/common/navigation_params.h" |
14 #include "content/common/resource_request_body.h" | 14 #include "content/common/resource_request_body.h" |
15 #include "content/public/common/referrer.h" | 15 #include "content/public/common/referrer.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class ResourceRequestBody; | 19 class ResourceRequestBody; |
20 | 20 |
21 // 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 |
22 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed | 22 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed |
23 // to the IO thread by a NavigationRequest object. | 23 // to the IO thread by a NavigationRequest object. |
24 struct CONTENT_EXPORT NavigationRequestInfo { | 24 struct CONTENT_EXPORT NavigationRequestInfo { |
25 NavigationRequestInfo(const CommonNavigationParams& common_params, | 25 NavigationRequestInfo(const CommonNavigationParams& common_params, |
26 const BeginNavigationParams& params, | 26 const BeginNavigationParams& begin_params, |
27 const RequestNavigationParams& request_params, | |
27 const GURL& first_party_for_cookies, | 28 const GURL& first_party_for_cookies, |
28 bool is_main_frame, | 29 bool is_main_frame, |
29 bool parent_is_main_frame, | 30 bool parent_is_main_frame, |
30 int frame_tree_node_id, | 31 int frame_tree_node_id, |
31 scoped_refptr<ResourceRequestBody> request_body); | 32 scoped_refptr<ResourceRequestBody> request_body); |
32 ~NavigationRequestInfo(); | 33 ~NavigationRequestInfo(); |
33 | 34 |
34 const CommonNavigationParams common_params; | 35 const CommonNavigationParams common_params; |
35 const BeginNavigationParams begin_params; | 36 const BeginNavigationParams begin_params; |
37 const RequestNavigationParams request_params; | |
clamy
2015/10/01 12:41:27
I think we can avoid copying a whole data struct f
Fabrice (no longer in Chrome)
2015/10/01 18:29:55
Done.
| |
36 | 38 |
37 // Usually the URL of the document in the top-level window, which may be | 39 // Usually the URL of the document in the top-level window, which may be |
38 // checked by the third-party cookie blocking policy. | 40 // checked by the third-party cookie blocking policy. |
39 const GURL first_party_for_cookies; | 41 const GURL first_party_for_cookies; |
40 | 42 |
41 const bool is_main_frame; | 43 const bool is_main_frame; |
42 const bool parent_is_main_frame; | 44 const bool parent_is_main_frame; |
43 | 45 |
44 const int frame_tree_node_id; | 46 const int frame_tree_node_id; |
45 | 47 |
46 scoped_refptr<ResourceRequestBody> request_body; | 48 scoped_refptr<ResourceRequestBody> request_body; |
47 }; | 49 }; |
48 | 50 |
49 } // namespace content | 51 } // namespace content |
50 | 52 |
51 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | 53 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ |
OLD | NEW |