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

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

Issue 1999943002: Moving HTTP POST body from StartNavigationParams to CommonNavigationParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from clamy@. Created 4 years, 7 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
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"
(...skipping 10 matching lines...) Expand all
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& begin_params, 26 const BeginNavigationParams& begin_params,
27 const GURL& first_party_for_cookies, 27 const GURL& first_party_for_cookies,
28 const url::Origin& request_initiator, 28 const url::Origin& request_initiator,
29 bool is_main_frame, 29 bool is_main_frame,
30 bool parent_is_main_frame, 30 bool parent_is_main_frame,
31 int frame_tree_node_id, 31 int frame_tree_node_id);
32 scoped_refptr<ResourceRequestBody> request_body);
33 ~NavigationRequestInfo(); 32 ~NavigationRequestInfo();
34 33
35 const CommonNavigationParams common_params; 34 const CommonNavigationParams common_params;
36 const BeginNavigationParams begin_params; 35 const BeginNavigationParams begin_params;
37 36
38 // Usually the URL of the document in the top-level window, which may be 37 // Usually the URL of the document in the top-level window, which may be
39 // checked by the third-party cookie blocking policy. 38 // checked by the third-party cookie blocking policy.
40 const GURL first_party_for_cookies; 39 const GURL first_party_for_cookies;
41 40
42 // The origin of the context which initiated the request. 41 // The origin of the context which initiated the request.
43 const url::Origin request_initiator; 42 const url::Origin request_initiator;
44 43
45 const bool is_main_frame; 44 const bool is_main_frame;
46 const bool parent_is_main_frame; 45 const bool parent_is_main_frame;
47 46
48 const int frame_tree_node_id; 47 const int frame_tree_node_id;
49
50 scoped_refptr<ResourceRequestBody> request_body;
51 }; 48 };
52 49
53 } // namespace content 50 } // namespace content
54 51
55 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ 52 #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