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

Unified Diff: content/public/common/frame_navigate_params.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/common/frame_navigate_params.h
diff --git a/content/public/common/frame_navigate_params.h b/content/public/common/frame_navigate_params.h
index f3f686c9211d7f18bf33ebdd4b8f1e79dfb2397d..93143f61005162dbf0df93ac903536758463fc88 100644
--- a/content/public/common/frame_navigate_params.h
+++ b/content/public/common/frame_navigate_params.h
@@ -17,6 +17,29 @@
namespace content {
+// Each WebHTTPPOSTBodyParams struct is for an element in the WebHTTPBody.
+struct CONTENT_EXPORT WebHTTPPOSTBodyParams {
+ WebHTTPPOSTBodyParams();
+ ~WebHTTPPOSTBodyParams();
+
+ std::string method;
+ enum Type { TypeData, TypeFile, TypeBlob, TypeURL } type;
+
+ std::string data;
+ std::string filePath;
+ long long fileStart;
+ long long fileLength; // -1 means to the end of the file.
+ double modificationTime;
+
+ // TODO:Do not clear how to use this field
+ GURL url; // For TypeBlob or TypeURL.
+ //WebURL blobURL;
+
+ // To pass HTTP Header Info
+ // TODO: Will Move to a new struct only for headers
michaeln 2012/10/23 23:22:18 Move the |method| data member too?
+ std::string ContentType;
+};
+
// Struct used by WebContentsObserver.
struct CONTENT_EXPORT FrameNavigateParams {
FrameNavigateParams();

Powered by Google App Engine
This is Rietveld 408576698