| Index: content/public/browser/navigation_entry.h
|
| diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
|
| index a68e66151ba604d5b19e64a974a0d1748a674f30..4ac51e35e055145b712c7e7e5ad0cbd6d42c1173 100644
|
| --- a/content/public/browser/navigation_entry.h
|
| +++ b/content/public/browser/navigation_entry.h
|
| @@ -17,6 +17,7 @@
|
| #include "content/common/content_export.h"
|
| #include "content/public/common/page_type.h"
|
| #include "content/public/common/referrer.h"
|
| +#include "content/public/common/resource_request_body.h"
|
| #include "ui/base/page_transition_types.h"
|
|
|
| class GURL;
|
| @@ -139,7 +140,7 @@ class NavigationEntry {
|
| // whether the page had post data.
|
| //
|
| // The actual post data is stored either in
|
| - // 1) browser_initiated_post_data when a new post data request is started.
|
| + // 1) post_data when a new post data request is started.
|
| // 2) content_state when a post request has started and is extracted by
|
| // WebKit to actually make the request.
|
| virtual void SetHasPostData(bool has_post_data) = 0;
|
| @@ -149,16 +150,15 @@ class NavigationEntry {
|
| virtual void SetPostID(int64_t post_id) = 0;
|
| virtual int64_t GetPostID() const = 0;
|
|
|
| - // Holds the raw post data of a browser initiated post request.
|
| + // Holds the raw post data of a post request.
|
| // For efficiency, this should be cleared when content_state is populated
|
| // since the data is duplicated.
|
| // Note, this field:
|
| // 1) is not persisted in session restore.
|
| // 2) is shallow copied with the static copy Create method above.
|
| // 3) may be nullptr so check before use.
|
| - virtual void SetBrowserInitiatedPostData(
|
| - const base::RefCountedMemory* data) = 0;
|
| - virtual const base::RefCountedMemory* GetBrowserInitiatedPostData() const = 0;
|
| + virtual void SetPostData(const scoped_refptr<ResourceRequestBody>& data) = 0;
|
| + virtual scoped_refptr<ResourceRequestBody> GetPostData() const = 0;
|
|
|
| // The favicon data and tracking information. See content::FaviconStatus.
|
| virtual const FaviconStatus& GetFavicon() const = 0;
|
|
|