Chromium Code Reviews

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

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FileRead Permission Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 6524241ba05bfc3a4df3b55a5ed8e389673d0c79..5a7b3e270a56dff3bde0f207059685fc1f9172f9 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -9,6 +9,8 @@
#include <set>
#include <string>
+#include "content/public/common/frame_navigate_params.h"
+
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
@@ -475,6 +477,22 @@ class CONTENT_EXPORT WebContentsImpl
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // For Cross-Navigation Post Submisstion
+ virtual void RequestOpenPostURL(content::RenderViewHost* rvh,
+ const GURL& url,
+ const content::Referrer& referrer,
+ WindowOpenDisposition disposition,
+ int64 source_frame_id,
+ bool is_post,
+ std::vector<content::WebHTTPPOSTBodyParams> post_data) OVERRIDE;
michaeln 2012/10/23 23:22:18 ditto pass by value
irobert 2012/11/01 19:26:31 Done.
+ virtual void RequestTransferPostURL(
+ const GURL& url,
+ const content::Referrer& referrer,
+ WindowOpenDisposition disposition,
+ int64 source_frame_id,
+ const content::GlobalRequestID& transferred_global_request_id,
+ bool is_post,
+ std::vector<content::WebHTTPPOSTBodyParams> post_data) OVERRIDE;
private:
friend class NavigationControllerImpl;

Powered by Google App Engine