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

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

Issue 10829044: Implement NavigationControllerWebView.PostURL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits. Use RefCountedBytes. Created 8 years, 5 months 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/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 1fa6122d001c777a8d8de372ef3ac760425bab1c..9ecd31c62ecdafc8c3bd58f4def7fb10d10c4c6a 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -236,6 +236,11 @@ void MakeNavigateParams(const NavigationEntryImpl& entry,
params->allow_download = !entry.IsViewSourceMode();
params->embedder_channel_name = embedder_channel_name;
params->embedder_container_id = embedder_container_id;
+ params->is_post = entry.GetHasPostData();
+ if(entry.GetBrowserInitiatedPostData().get()) {
+ params->browser_initiated_post_data =
boliu 2012/07/30 18:52:42 A copy can be saved here by using vector::swap ins
+ entry.GetBrowserInitiatedPostData()->data();
+ }
if (delegate)
delegate->AddNavigationHeaders(params->url, &params->extra_headers);

Powered by Google App Engine
This is Rietveld 408576698