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

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

Issue 2022483003: ABANDONED CL: LoadURLParams: Add |method| + removing LOAD_TYPE_BROWSER_INITIATED_HTTP_POST. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@post-data-my-stuff
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
(...skipping 62 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<base::RefCountedMemory> browser_initiated_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
(...skipping 148 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.cc ('k') | components/web_contents_delegate_android/web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698