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

Unified Diff: content/browser/loader/resource_request_info_impl.h

Issue 1956383003: Forwarding POST body into renderer after a cross-site transfer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed DCHECK_IMPLIES(method == "POST", url.SchemeIs(http or https)). 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_request_info_impl.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index 1e383504c0b26d41a9c388781d5774920cc9c8f3..1ebb11dc2bd83178604fee6c872167c8fdde06b3 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/supports_user_data.h"
+#include "content/common/resource_request_body.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/common/referrer.h"
#include "content/public/common/resource_type.h"
@@ -66,7 +67,8 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool report_raw_headers,
bool is_async,
bool is_using_lofi,
- const std::string& original_headers);
+ const std::string& original_headers,
+ const scoped_refptr<ResourceRequestBody> body);
~ResourceRequestInfoImpl() override;
// ResourceRequestInfo implementation:
@@ -184,6 +186,9 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
}
const std::string& original_headers() const { return original_headers_; }
+ const scoped_refptr<ResourceRequestBody>& body() const { return body_; }
+ void ResetBody();
+
private:
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
DeletedFilterDetached);
@@ -225,6 +230,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool is_async_;
bool is_using_lofi_;
const std::string original_headers_;
+ scoped_refptr<ResourceRequestBody> body_;
DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
};

Powered by Google App Engine
This is Rietveld 408576698