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 "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
12 #include "content/common/frame_messages.h" | 13 #include "content/common/navigation_params.h" |
13 #include "content/public/common/referrer.h" | 14 #include "content/public/common/referrer.h" |
14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
18 class ResourceRequestBody; | |
17 | 19 |
18 // A struct to hold the parameters needed to start a navigation request in | 20 // A struct to hold the parameters needed to start a navigation request in |
19 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed | 21 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed |
20 // to the IO thread by a NavigationRequest object. | 22 // to the IO thread by a NavigationRequest object. |
21 struct CONTENT_EXPORT NavigationRequestInfo { | 23 struct CONTENT_EXPORT NavigationRequestInfo { |
22 explicit NavigationRequestInfo( | 24 NavigationRequestInfo(const BeginNavigationParams& params, |
23 const FrameHostMsg_BeginNavigation_Params& params); | 25 const GURL& first_party_for_cookies, |
26 bool is_main_frame, | |
27 bool parent_is_main_frame, | |
28 scoped_refptr<ResourceRequestBody> request_body); | |
29 ~NavigationRequestInfo(); | |
24 | 30 |
25 const FrameHostMsg_BeginNavigation_Params navigation_params; | 31 const BeginNavigationParams begin_params; |
davidben
2015/02/03 02:23:21
Perhaps CommonNavigationParams should also be plac
clamy
2015/02/03 16:17:09
Done. Note that this is a copy of CommonNavigation
| |
26 | |
27 // --------------------------------------------------------------------------- | |
28 // The following parameters should be filled in by RenderFrameHostManager | |
29 // before the navigation request is sent to the ResourceDispatcherHost. | |
30 | 32 |
31 // Usually the URL of the document in the top-level window, which may be | 33 // Usually the URL of the document in the top-level window, which may be |
32 // checked by the third-party cookie blocking policy. | 34 // checked by the third-party cookie blocking policy. |
33 GURL first_party_for_cookies; | 35 const GURL first_party_for_cookies; |
34 bool is_main_frame; | 36 |
35 bool parent_is_main_frame; | 37 const bool is_main_frame; |
38 const bool parent_is_main_frame; | |
39 | |
40 scoped_refptr<ResourceRequestBody> request_body; | |
36 }; | 41 }; |
37 | 42 |
38 } // namespace content | 43 } // namespace content |
39 | 44 |
40 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | 45 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ |
OLD | NEW |