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

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

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New OpenURL function and DataType Test 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.cc
diff --git a/content/browser/web_contents/navigation_entry_impl.cc b/content/browser/web_contents/navigation_entry_impl.cc
index d5476ca53accf4442b65c5af35e423aed9b9553c..7968546e22b7c507e7cfce147fcc0c3368ee9ec4 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -213,16 +213,15 @@ int64 NavigationEntryImpl::GetPostID() const {
}
void NavigationEntryImpl::SetBrowserInitiatedPostData(
- const base::RefCountedMemory* data) {
+ scoped_refptr<webkit_glue::ResourceRequestBody> data) {
browser_initiated_post_data_ = data;
}
-const base::RefCountedMemory*
+const scoped_refptr<webkit_glue::ResourceRequestBody>
NavigationEntryImpl::GetBrowserInitiatedPostData() const {
- return browser_initiated_post_data_.get();
+ return browser_initiated_post_data_;
}
-
const FaviconStatus& NavigationEntryImpl::GetFavicon() const {
return favicon_;
}

Powered by Google App Engine
This is Rietveld 408576698