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

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 Android API, Helper Function and Include_rules 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 ba13c147fd44b14eed9b8cae8fc866075ec15c24..5b12e78ac7f93e7d64138d389b7a55588e9e7eb2 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;
@@ -201,7 +200,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_;
// This member is not persisted with session restore.
std::string extra_headers_;

Powered by Google App Engine
This is Rietveld 408576698