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

Unified Diff: content/browser/web_contents/navigation_entry_impl.h

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Comments Created 8 years, 1 month 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/web_contents/navigation_entry_impl.h
diff --git a/content/browser/web_contents/navigation_entry_impl.h b/content/browser/web_contents/navigation_entry_impl.h
index 55477e2417c4d73e111d073af2114ef437db24e2..5cdc15f3a4a56095fe96b8496d3787c4eb5a22a2 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -6,7 +6,6 @@
#define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
#include "content/browser/site_instance_impl.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/global_request_id.h"
@@ -58,8 +57,8 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual void SetPostID(int64 post_id) OVERRIDE;
virtual int64 GetPostID() const OVERRIDE;
virtual void SetBrowserInitiatedPostData(
- const base::RefCountedMemory* data) OVERRIDE;
- virtual const base::RefCountedMemory*
+ scoped_refptr<webkit_glue::ResourceRequestBody> data) OVERRIDE;
+ virtual const scoped_refptr<webkit_glue::ResourceRequestBody>
GetBrowserInitiatedPostData() const OVERRIDE;
virtual const FaviconStatus& GetFavicon() const OVERRIDE;
virtual FaviconStatus& GetFavicon() OVERRIDE;
@@ -200,7 +199,7 @@ class CONTENT_EXPORT NavigationEntryImpl
// 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.
- scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_;
+ scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data_;
Charlie Reis 2012/11/20 05:46:03 I have some concerns about using a ResourceRequest
// This member is not persisted with session restore.
std::string extra_headers_;

Powered by Google App Engine
This is Rietveld 408576698