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

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 Structure and Tests 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/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 d2fc73d3f99ffff72e85459f9002d60f636cd254..d12167a4acef0d09f98a4c4610dae204b3f99f31 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -35,6 +35,7 @@
struct BrowserPluginHostMsg_CreateGuest_Params;
struct BrowserPluginHostMsg_ResizeGuest_Params;
struct ViewMsg_PostMessage_Params;
+struct ViewMsg_PostRequest_Params;
namespace webkit_glue {
struct WebIntentData;
@@ -461,6 +462,22 @@ class CONTENT_EXPORT WebContentsImpl
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
+ // For Cross-Navigation Post Submisstion
+ virtual void RequestOpenPostURL(
+ RenderViewHost* rvh,
+ const GURL& url,
+ const Referrer& referrer,
+ WindowOpenDisposition disposition,
+ int64 source_frame_id,
+ const ViewMsg_PostRequest_Params& request) OVERRIDE;
+
+ virtual void RequestTransferPostURL(
+ const GURL& url,
+ const content::Referrer& referrer,
+ WindowOpenDisposition disposition,
+ int64 source_frame_id,
+ const content::GlobalRequestID& transferred_global_request_id,
+ const ViewMsg_PostRequest_Params& request) OVERRIDE;
private:
friend class NavigationControllerImpl;

Powered by Google App Engine
This is Rietveld 408576698