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

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: Reuse ResourceRequestBody Struct 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 9937e7eb27815cb17d56852f5ef3b72f38ad8abf..e7ca9cd71b0681d9f84ac46521eba5177af697b3 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -22,6 +22,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/frame_navigate_params.h"
#include "content/public/common/renderer_preferences.h"
#include "net/base/load_states.h"
#include "ui/gfx/rect_f.h"
@@ -34,6 +35,7 @@
struct BrowserPluginHostMsg_ResizeGuest_Params;
struct ViewMsg_PostMessage_Params;
+struct ViewMsg_Request;
namespace webkit_glue {
struct WebIntentData;
@@ -460,6 +462,21 @@ class CONTENT_EXPORT WebContentsImpl
const NotificationSource& source,
const 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,
+ const ViewMsg_Request& 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_Request& request) OVERRIDE;
private:
friend class NavigationControllerImpl;

Powered by Google App Engine
This is Rietveld 408576698