summaryrefslogtreecommitdiff
path: root/chromium/content/browser/frame_host/navigation_entry_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/frame_host/navigation_entry_impl.h')
-rw-r--r--chromium/content/browser/frame_host/navigation_entry_impl.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/chromium/content/browser/frame_host/navigation_entry_impl.h b/chromium/content/browser/frame_host/navigation_entry_impl.h
index 8b5066e3e5d..8209b980c7d 100644
--- a/chromium/content/browser/frame_host/navigation_entry_impl.h
+++ b/chromium/content/browser/frame_host/navigation_entry_impl.h
@@ -16,6 +16,7 @@
#include "content/browser/frame_host/frame_tree_node.h"
#include "content/browser/site_instance_impl.h"
#include "content/common/frame_message_enums.h"
+#include "content/common/resource_request_body_impl.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/global_request_id.h"
#include "content/public/browser/navigation_entry.h"
@@ -23,6 +24,7 @@
#include "content/public/common/ssl_status.h"
namespace content {
+class ResourceRequestBodyImpl;
struct CommonNavigationParams;
struct RequestNavigationParams;
struct StartNavigationParams;
@@ -117,8 +119,8 @@ class CONTENT_EXPORT NavigationEntryImpl
bool GetHasPostData() const override;
void SetPostID(int64_t post_id) override;
int64_t GetPostID() const override;
- void SetBrowserInitiatedPostData(const base::RefCountedMemory* data) override;
- const base::RefCountedMemory* GetBrowserInitiatedPostData() const override;
+ void SetPostData(const scoped_refptr<ResourceRequestBody>& data) override;
+ scoped_refptr<ResourceRequestBody> GetPostData() const override;
const FaviconStatus& GetFavicon() const override;
FaviconStatus& GetFavicon() override;
const SSLStatus& GetSSL() const override;
@@ -160,6 +162,8 @@ class CONTENT_EXPORT NavigationEntryImpl
// Helper functions to construct NavigationParameters for a navigation to this
// NavigationEntry.
CommonNavigationParams ConstructCommonNavigationParams(
+ const FrameNavigationEntry& frame_entry,
+ const scoped_refptr<ResourceRequestBodyImpl>& post_body,
const GURL& dest_url,
const Referrer& dest_referrer,
FrameMsg_Navigate_Type::Value navigation_type,
@@ -407,10 +411,9 @@ class CONTENT_EXPORT NavigationEntryImpl
// This member is not persisted with session restore because it is transient.
// If the post request succeeds, this field is cleared since the same
- // information is stored in |content_state_| above. It is also only shallow
- // copied with compiler provided copy constructor.
- // Cleared in |ResetForCommit|.
- scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_;
+ // information is stored in PageState. It is also only shallow copied with
+ // compiler provided copy constructor. Cleared in |ResetForCommit|.
+ scoped_refptr<ResourceRequestBodyImpl> post_data_;
// This is also a transient member (i.e. is not persisted with session
// restore). The screenshot of a page is taken when navigating away from the