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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 2038813003: Making ResourceRequestBody part of //content's public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index cd0d68a1cdd6032dc3688bcaa0b4277b90b0351a..d2eca0f4ffb15cd2664d62ec91e5c4ecc34f4bcb 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -18,7 +18,7 @@
#include "content/common/content_constants_internal.h"
#include "content/common/navigation_params.h"
#include "content/common/page_state_serialization.h"
-#include "content/common/resource_request_body.h"
+#include "content/common/resource_request_body_impl.h"
#include "content/common/site_isolation_policy.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_constants.h"
@@ -570,12 +570,12 @@ std::unique_ptr<NavigationEntryImpl> NavigationEntryImpl::CloneAndReplace(
return copy;
}
-scoped_refptr<ResourceRequestBody>
+scoped_refptr<ResourceRequestBodyImpl>
NavigationEntryImpl::ConstructBodyFromBrowserInitiatedPostData() const {
- scoped_refptr<ResourceRequestBody> browser_initiated_post_body;
+ scoped_refptr<ResourceRequestBodyImpl> browser_initiated_post_body;
if (GetHasPostData()) {
if (const base::RefCountedMemory* memory = GetBrowserInitiatedPostData()) {
- browser_initiated_post_body = new ResourceRequestBody();
+ browser_initiated_post_body = new ResourceRequestBodyImpl();
browser_initiated_post_body->AppendBytes(memory->front_as<char>(),
memory->size());
}
@@ -585,7 +585,7 @@ NavigationEntryImpl::ConstructBodyFromBrowserInitiatedPostData() const {
CommonNavigationParams NavigationEntryImpl::ConstructCommonNavigationParams(
const FrameNavigationEntry& frame_entry,
- const scoped_refptr<ResourceRequestBody>& post_body,
+ const scoped_refptr<ResourceRequestBodyImpl>& post_body,
const GURL& dest_url,
const Referrer& dest_referrer,
FrameMsg_Navigate_Type::Value navigation_type,
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | content/browser/frame_host/navigation_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698