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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_navigator_params.h
diff --git a/chrome/browser/ui/browser_navigator_params.h b/chrome/browser/ui/browser_navigator_params.h
index a0d523cca3a364612717d98629cc0e893ce5d767..73d258db259353272508a331d1685bc8d85495c8 100644
--- a/chrome/browser/ui/browser_navigator_params.h
+++ b/chrome/browser/ui/browser_navigator_params.h
@@ -9,11 +9,11 @@
#include <vector>
#include "base/memory/ref_counted.h"
-#include "base/memory/ref_counted_memory.h"
#include "build/build_config.h"
#include "content/public/browser/global_request_id.h"
#include "content/public/browser/site_instance.h"
#include "content/public/common/referrer.h"
+#include "content/public/common/resource_request_body.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/geometry/rect.h"
@@ -80,13 +80,10 @@ struct NavigateParams {
std::vector<GURL> redirect_chain;
// Indicates whether this navigation will be sent using POST.
- // The POST method is limited support for basic POST data by leveraging
- // NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST.
- // It is not for things like file uploads.
bool uses_post;
// The post data when the navigation uses POST.
- scoped_refptr<base::RefCountedMemory> browser_initiated_post_data;
+ scoped_refptr<content::ResourceRequestBody> post_data;
// Extra headers to add to the request for this page. Headers are
// represented as "<name>: <value>" and separated by \r\n. The entire string

Powered by Google App Engine
This is Rietveld 408576698