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

Side by Side Diff: chrome/browser/ui/browser_navigator_params.h

Issue 2038233002: Using ResourceRequestBody as the type of HTTP body outside of //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Rebasing... Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/ref_counted_memory.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "content/public/browser/global_request_id.h" 13 #include "content/public/browser/global_request_id.h"
15 #include "content/public/browser/site_instance.h" 14 #include "content/public/browser/site_instance.h"
16 #include "content/public/common/referrer.h" 15 #include "content/public/common/referrer.h"
16 #include "content/public/common/resource_request_body.h"
17 #include "ui/base/page_transition_types.h" 17 #include "ui/base/page_transition_types.h"
18 #include "ui/base/window_open_disposition.h" 18 #include "ui/base/window_open_disposition.h"
19 #include "ui/gfx/geometry/rect.h" 19 #include "ui/gfx/geometry/rect.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 class Browser; 22 class Browser;
23 class Profile; 23 class Profile;
24 24
25 namespace content { 25 namespace content {
26 class WebContents; 26 class WebContents;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 content::Referrer referrer; 73 content::Referrer referrer;
74 74
75 // The browser-global ID of the frame to navigate, or -1 for the main frame. 75 // The browser-global ID of the frame to navigate, or -1 for the main frame.
76 int frame_tree_node_id; 76 int frame_tree_node_id;
77 77
78 // Any redirect URLs that occurred for this navigation before |url|. 78 // Any redirect URLs that occurred for this navigation before |url|.
79 // Usually empty. 79 // Usually empty.
80 std::vector<GURL> redirect_chain; 80 std::vector<GURL> redirect_chain;
81 81
82 // Indicates whether this navigation will be sent using POST. 82 // Indicates whether this navigation will be sent using POST.
83 // The POST method is limited support for basic POST data by leveraging
84 // NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST.
85 // It is not for things like file uploads.
86 bool uses_post; 83 bool uses_post;
87 84
88 // The post data when the navigation uses POST. 85 // The post data when the navigation uses POST.
89 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; 86 scoped_refptr<content::ResourceRequestBody> post_data;
90 87
91 // Extra headers to add to the request for this page. Headers are 88 // Extra headers to add to the request for this page. Headers are
92 // represented as "<name>: <value>" and separated by \r\n. The entire string 89 // represented as "<name>: <value>" and separated by \r\n. The entire string
93 // is terminated by \r\n. May be empty if no extra headers are needed. 90 // is terminated by \r\n. May be empty if no extra headers are needed.
94 std::string extra_headers; 91 std::string extra_headers;
95 92
96 // [in] A WebContents to be navigated or inserted into the target 93 // [in] A WebContents to be navigated or inserted into the target
97 // Browser's tabstrip. If NULL, |url| or the homepage will be used 94 // Browser's tabstrip. If NULL, |url| or the homepage will be used
98 // instead. When non-NULL, Navigate() assumes it has already been 95 // instead. When non-NULL, Navigate() assumes it has already been
99 // navigated to its intended destination and will not load any URL in it 96 // navigated to its intended destination and will not load any URL in it
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 NavigateParams(); 241 NavigateParams();
245 }; 242 };
246 243
247 // Copies fields from |params| struct to |nav_params| struct. 244 // Copies fields from |params| struct to |nav_params| struct.
248 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, 245 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params,
249 const content::OpenURLParams& params); 246 const content::OpenURLParams& params);
250 247
251 } // namespace chrome 248 } // namespace chrome
252 249
253 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ 250 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/browser_navigator_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698